name: Flutter web github pages deploy
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
- name: Install dependencies
run: |
flutter pub get
- name: Build web application [development]
run: |
flutter build web --target lib/main_development.dart
# Deploy web in web branch for gh pages
- run: git config user.name github-actions
shell: bash
- run: git config user.email [email protected]
shell: bash
- run: git --work-tree build/web add --all
shell: bash
- run: git commit -m "Automatic deployment by github-actions"
shell: bash
- run: git push origin HEAD:web --force
shell: bash
luisciber cross-posted this post in Programming & Dev 4 years ago
Congratulations @luisciber! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):
Your next target is to reach 30 posts.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
To support your work, I also upvoted your post!
Check out the last post from @hivebuzz:
Support the HiveBuzz project. Vote for our proposal!