Skip to content

Commit

Permalink
Used custom configuration for preview env
Browse files Browse the repository at this point in the history
Bumped libolm version
  • Loading branch information
tk-nguyen authored and hoangdat committed Mar 29, 2024
1 parent a3700f0 commit a4ec11e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit a4ec11e

Please sign in to comment.