Skip to content

Commit bfcd020

Browse files
committed
automation setup
1 parent 3cf775f commit bfcd020

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Web - Build and Publish"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build-and-deploy:
8+
name: Build Web
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Flutter
15+
uses: subosito/flutter-action@v2
16+
with:
17+
channel: stable
18+
19+
- name: Install dependencies
20+
run: flutter pub get
21+
22+
- name: Build web
23+
run: flutter build web --release --base-href /ThreeactionsArea/
24+
env:
25+
FLUTTER_BUILD_WEB: true
26+
27+
- name: Deploy to GitHub Pages
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./build/web
32+
keep_files: true

web/.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)