-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (29 loc) · 840 Bytes
/
main.yml
File metadata and controls
35 lines (29 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: On Website Deploy
"on":
push:
branches:
- "main"
jobs:
build_and_deploy_web:
name: Build & Deploy Flutter to Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: 🌍 Enable Web
run: flutter config --enable-web
- name: 📦 Get packages
run: flutter pub get
- name: 🏭 Build Web Application
run: flutter build web --release
- name: Make copy of artifacts
run: |
chmod u+x "${GITHUB_WORKSPACE}/createandcopytofolder.sh"
bash "${GITHUB_WORKSPACE}/createandcopytofolder.sh"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Commit the artifacts.
permissions:
contents: write