-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 876 Bytes
/
main.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
name: Build Web Release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Flutter
uses: britannio/[email protected]
with:
# The channel/version of Flutter to be used e.g., beta or 2.0.0
version: 3.24.4
- name: Build
run: |
flutter pub get
flutter build web --release --web-renderer html --base-href=/trackifly/ --dart-define=CLIENT_SECRET=${{ secrets.CLIENT_SECRET }}
env:
REACT_APP_APIKey: ${{ secrets.CLIENT_ID }}
REACT_APP_APISecret: ${{ secrets.CLIENT_SECRET }}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build/web