Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Wei committed Jun 9, 2024
1 parent 61aa797 commit a27df7d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-android
name: Build for Android

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-ios
name: Build for iOS

on:
workflow_dispatch:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build web & publish to Github Pages

on:
workflow_dispatch:

jobs:
build-and-deploy-web:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Cache Flutter
uses: actions/cache@v3
id: flutter-cache
with:
key: $GITHUB_SHA-flutter
path: ~/.flutter
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
# - name: Build and deploy to GH pages
# uses: bluefireteam/flutter-gh-pages@v7
- run: flutter pub get
- run: flutter build web --release
- name: Deploy to GH pages
uses: peaceiris/actions-gh-pages@v4
14 changes: 7 additions & 7 deletions .github/workflows/publish-web.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to Github Pages
name: Build web & publish to Github Pages

on:
workflow_dispatch:
Expand All @@ -20,9 +20,9 @@ jobs:
with:
channel: stable
cache: true
# - name: Build and deploy to GH pages
# uses: bluefireteam/flutter-gh-pages@v7
- run: flutter pub get
- run: flutter build web --release
- name: Deploy to GH pages
uses: peaceiris/actions-gh-pages@v4
- name: Build and deploy to GH pages
uses: bluefireteam/flutter-gh-pages@v7
# - run: flutter pub get
# - run: flutter build web --release
# - name: Deploy to GH pages
# uses: peaceiris/actions-gh-pages@v4

0 comments on commit a27df7d

Please sign in to comment.