-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.06 KB
/
main_ci.yml
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
36
37
38
39
40
41
42
name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.16.4'
- name: Enable Flutter Web
run: flutter config --enable-web
- name: Download Dependencies
run: flutter pub get
- name: Run Build Runner
run: flutter packages pub run build_runner build --delete-conflicting-outputs
- name: Build
run: flutter build web --web-renderer html --base-href /acs_scheduler/
# - name: Create CNAME File
# run: echo "scheduler.adamscountyworks.org" > ./build/web/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web
force_orphan: true
user_name: 'github-ci[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Publish to gh-pages'