-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (36 loc) · 1.07 KB
/
deploy_example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy the build
"on":
push:
branches:
- main
defaults:
run:
working-directory: ./example
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
# flutter-version: '3.3.10'
channel: "stable"
- run: flutter clean
- run: flutter pub get
- run: flutter build web --release
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.1
with:
publish-dir: "./example/build/web"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1