Skip to content

Workflow file for this run

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
- 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'