-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (42 loc) · 1.34 KB
/
build.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
38
39
40
41
42
43
# 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
- run: cd .. && flutter test --coverage --coverage-path coverage/lcov.info
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: maheshmnj/navbar_router
- name: Deploy to Netlify
uses: nwtgck/[email protected]
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