Last active
July 18, 2020 06:14
-
-
Save cerberodev/3a7cfe839a7b753bff84a24caf8f4ae3 to your computer and use it in GitHub Desktop.
Deploy to Github Pages & Firebase. (Flutter Web)
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 y Firebase | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v1 | |
with: | |
channel: 'beta' | |
- name: Enable Flutter web | |
run: flutter config --enable-web | |
- name: Install dependencies | |
run: flutter packages get | |
- name: Build web | |
run: flutter build web | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.token }} | |
publish_dir: ./build/web | |
- name: Install dependencies | |
run: npm install | |
- name: Deploy to Firebase | |
uses: w9jds/firebase-action@master | |
with: | |
args: deploy | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment