Delete Schools Done #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |