Skip to content

Commit 7362cd1

Browse files
committed
Github actions update
1 parent 10f8e14 commit 7362cd1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

+21
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
web:
4545
name: Web
4646
runs-on: ubuntu-latest
47+
permissions:
48+
contents: read
49+
pages: write
50+
id-token: write
51+
environment:
52+
name: github-pages
53+
url: ${{ steps.deployment.outputs.page_url }}
4754
steps:
4855
- name: Set up Flutter
4956
uses: subosito/flutter-action@v2
@@ -55,6 +62,9 @@ jobs:
5562
with:
5663
path: "app"
5764

65+
- name: Setup Pages
66+
uses: actions/configure-pages@v5
67+
5868
- name: Build web release
5969
run: |
6070
cd app
@@ -67,6 +77,7 @@ jobs:
6777
cd app
6878
cp privacy-policy/index.html build/web/privacy-policy.html
6979
80+
# Deploy to Firebase
7081
- name: Deploy to Firebase
7182
uses: w9jds/firebase-action@master
7283
with:
@@ -75,6 +86,16 @@ jobs:
7586
PROJECT_PATH: "app"
7687
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
7788

89+
# GitHub Pages deployment steps
90+
- name: Upload artifact for GitHub Pages
91+
uses: actions/upload-pages-artifact@v3
92+
with:
93+
path: app/build/web
94+
95+
- name: Deploy to GitHub Pages
96+
id: deployment
97+
uses: actions/deploy-pages@v4
98+
7899
android:
79100
name: Android
80101
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)