diff --git a/.github/workflows/unsafe_website_ci.yml b/.github/workflows/unsafe_website_ci.yml index cdeac3449..fba464b75 100644 --- a/.github/workflows/unsafe_website_ci.yml +++ b/.github/workflows/unsafe_website_ci.yml @@ -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 diff --git a/.github/workflows/website_cd.yml b/.github/workflows/website_cd.yml index 3e0ccb000..b1065cea6 100644 --- a/.github/workflows/website_cd.yml +++ b/.github/workflows/website_cd.yml @@ -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: