Skip to content

Commit c6bc899

Browse files
committed
ci: Add build and deployment jobs
1 parent c826529 commit c6bc899

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches: [ "master" ]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: subosito/flutter-action@v2
11+
with:
12+
channel: stable
13+
flutter-version: 3.24.x
14+
- run: flutter build web
15+
- id: deployment
16+
uses: actions/upload-pages-artifact@v3
17+
with:
18+
path: build/web
19+
20+
deploy:
21+
runs-on: ubuntu-latest
22+
needs: build
23+
permissions:
24+
pages: write
25+
id-token: write
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
steps:
30+
- name: Deploy to GitHub Pages
31+
id: deployment
32+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)