forked from RodrigoSMarques/flutter_branch_sdk
-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (45 loc) · 1.33 KB
/
deploy-web.yaml
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
44
45
46
47
name: Deploying the sample app to the web
on:
# pull_request:
# branches:
# - "master"
# paths-ignore:
# - "**/README.md"
# - "**/CHANGELOG.md"
# - "docs/**"
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: Build Web
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Make executeable build-web.sh
run: chmod +x tool/build-web.sh
- name: Install dependencies & Build web
run: tool/build-web.sh
- name: Deploy to Netlify
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }}
uses: nwtgck/actions-netlify@v3
with:
publish-dir: './example/build/web'
production-branch: master
production-deploy: true
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