Fix web builds (#38) #22
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: demo | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'fireworks/lib/**' | |
- 'fireworks/pubspec.yaml' | |
- 'fireworks_demo/lib/**' | |
- 'fireworks_demo/web/**' | |
- 'fireworks_demo/pubspec.yaml' | |
- '.github/workflows/web_deploy.yml' | |
jobs: | |
demo-deploy: | |
timeout-minutes: 6 | |
runs-on: ubuntu-latest | |
name: web deployment | |
steps: | |
- uses: actions/checkout@v2.3.4 | |
with: | |
persist-credentials: false | |
- uses: subosito/flutter-action@v2.8.0 | |
with: | |
channel: 'stable' | |
- name: Build demo web app | |
run: | | |
cd fireworks_demo | |
flutter pub get | |
flutter build web | |
cd build/web | |
touch ".nojekyll" | |
echo "fireworks.creativemaybeno.dev" > CNAME | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@3.7.1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: fireworks_demo/build/web | |
GIT_CONFIG_NAME: creativecreatorormaybenot | |
GIT_CONFIG_EMAIL: creativecreatorormaybenot@gmail.com | |
COMMIT_MESSAGE: Deploy fireworks demo web page |