Skip to content

Commit

Permalink
Use build website command in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt committed Mar 1, 2024
1 parent 68da649 commit a066e71
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/unsafe_website_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,13 @@ jobs:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}

- name: Build website
working-directory: website
- name: Install Sharezone CLI
run: |
flutter build web \
--web-renderer canvaskit \
--pwa-strategy none
flutter pub global activate --source path "$CI_CD_DART_SCRIPTS_PACKAGE_PATH"
echo $(pwd)/bin >> $GITHUB_PATH
- name: Build
run: sz build website --flavor dev

- name: Deploy to Firebase Hosting (sharezone-debug)
uses: FirebaseExtended/action-hosting-deploy@120e124148ab7016bec2374e5050f15051255ba2
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/website_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@ jobs:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}

- name: Build
working-directory: website
- name: Install Sharezone CLI
run: |
# We use the canvaskit renderer because the html renderer is a bit
# buggy.
flutter build web \
--web-renderer canvaskit \
--dart-define=FLAVOR=${{ matrix.environment.flavor }} \
--pwa-strategy none
flutter pub global activate --source path "$CI_CD_DART_SCRIPTS_PACKAGE_PATH"
echo $(pwd)/bin >> $GITHUB_PATH
- name: Build
run: sz build website --flavor ${{ matrix.environment.flavor }}

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down

0 comments on commit a066e71

Please sign in to comment.