Skip to content

Commit

Permalink
Updated deploy-gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leslieyip02 authored Dec 18, 2023
1 parent e05097b commit 2098aef
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ on:
push:
branches: [ main ]

# allow manual trigger
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
pages: write
contents: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -23,6 +22,9 @@ jobs:
flutter-version: 3.13.8
channel: "stable"

# enable web
# remove widget_test which is based on the default app
# remove base href from index.html for gh-pages
- name: Build with Flutter
run: |
flutter config --enable-web
Expand All @@ -32,6 +34,7 @@ jobs:
flutter pub get
flutter test
flutter build web
sed -i '/base href/d' index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 2098aef

Please sign in to comment.