diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index f8f1fa0dca..18b5c0c8c3 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -3,7 +3,7 @@ on: env: FLUTTER_VERSION: 3.16.5 - LIBOLM_VERSION: 3.2.15 + LIBOLM_VERSION: 3.2.16 name: Deploying on GitHub Pages @@ -39,7 +39,7 @@ jobs: ssh-private-key: ${{ secrets.SSH_KEY }} - name: Setup Nix (to build libolm) - uses: cachix/install-nix-action@v19 + uses: cachix/install-nix-action@v26 - name: Build libolm run: | @@ -51,13 +51,14 @@ jobs: - name: Build Web version env: FOLDER: ${{ github.event.pull_request.number }} + TWAKE_PREVIEW_CONFIG: ${{ secrets.TWAKE_PREVIEW_CONFIG }} run: | flutter config --enable-web flutter clean flutter pub get flutter pub run build_runner build --delete-conflicting-outputs flutter build web --release --verbose --source-maps --base-href="/${GITHUB_REPOSITORY##*/}/$FOLDER/" - yq '.issue_id = strenv(FOLDER)' config.sample.json > ./build/web/config.json + echo "$TWAKE_PREVIEW_CONFIG" | yq '.issue_id = strenv(FOLDER)' > ./build/web/config.json - name: Configure environments id: configure