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 9b9d824 commit f3521ce
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write
Expand All @@ -21,17 +20,31 @@ jobs:
flutter-version: 3.13.8
channel: "stable"

- run: flutter config --enable-web
- run: flutter channel beta
- run: flutter create .
- run: rm test/widget_test.dart
- run: flutter pub get
- run: flutter build web
- run: flutter test
- name: Build with Flutter
run: |
flutter config --enable-web
flutter channel beta
flutter create .
rm test/widget_test.dart
flutter pub get
flutter test
flutter build web
- uses: actions/configure-pages@v3
- uses: actions/jekyll-build-pages@v1
with:
source: ./build/web
- uses: actions/upload-pages-artifact@v1
- uses: actions/deploy-pages@v3
destination: ./_site
- uses: actions/upload-pages-artifact@v2

deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3

0 comments on commit f3521ce

Please sign in to comment.