-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (57 loc) · 1.53 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build
'on':
push:
branches:
- master
jobs:
build:
permissions:
contents: read
pages: write
id-token: write
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.6'
channel: 'stable'
cache: true
- run: echo -e "TTS_SUBSCRIPTION_KEY=${{ secrets.TTS_SUBSCRIPTION_KEY }}\nRESEND_API_KEY=${{ secrets.RESEND_API_KEY }}" > .env
- run: flutter build appbundle --debug --dart-define-from-file=.env
- run: flutter build ios --release --no-codesign --dart-define-from-file=.env
website-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'website'
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: 'website/build/'
website-deploy:
needs: website-build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4