Skip to content

Commit

Permalink
add ci/cd for web deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Jun 13, 2024
1 parent dd880fb commit cd1b415
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI/CD

on:
push:
pull_request:

env:
AWS_REGION : "eu-west-1"
NODE_VERSION: 20.x

jobs:
deploy-test:
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main'
needs: test
concurrency: deploy-test
env:
AWS_S3_BUCKET_NAME : 'eu.testingmachine.sfscon.app'
steps:
- name: Checkout source code
uses: actions/checkout@v4

- uses: noi-techpark/github-actions/npm-build@v2
with:
build-command: npx expo export -p web
node-version: ${{ env.NODE_VERSION }}

- name: Sync to S3 bucket
uses: noi-techpark/github-actions/aws-s3-bucket-sync@v2
with:
access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY_ID }}
secret-access-key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
region: ${{ env.AWS_REGION }}
s3-bucket-name: ${{ env.AWS_S3_BUCKET_NAME }}
folder: ./dist

12 changes: 12 additions & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: REUSE Compliance Check

on: push

jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
2 changes: 1 addition & 1 deletion .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Files: assets/fonts/*.ttf
Copyright: © 2010 - 2018 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’.
License: OFL-1.1-RFN

Files: assets/*.png assets/*.svg prepare_build.sh switch.sh assets/icons/*.png assets/icons/*.svg *.js #.env.sample docker-compose.yaml src/*.py src/*.yaml src/*.xml src/docker/* README.md requirements.txt src/pyproject.toml src/tests/assets/fake_attendees.json src/tests/pytest.ini
Files: .github/workflows/** assets/*.png assets/*.svg prepare_build.sh switch.sh assets/icons/*.png assets/icons/*.svg *.js #.env.sample docker-compose.yaml src/*.py src/*.yaml src/*.xml src/docker/* README.md requirements.txt src/pyproject.toml src/tests/assets/fake_attendees.json src/tests/pytest.ini
Copyright: 2023 DigitalCUBE <[email protected]>
License: GPL-3.0-or-later

4 changes: 2 additions & 2 deletions constants/buildVersion.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const BUILD_VERSION = "7f14e72"
export const BUILD_VERSION = "836be07"
export const APP_VERSION = "1.2.9";
export const BUILD_DATE = "11 Jun 2024 13:38"
export const BUILD_DATE = "12 Jun 2024 08:57"

0 comments on commit cd1b415

Please sign in to comment.