-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.02 KB
/
deploy-gg-web.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
on:
push:
paths:
- 'native_gg/**'
jobs:
deploy:
runs-on: ubuntu-latest
env:
TURBO_URL: ${{ secrets.TURBO_URL }}
TURBO_CODE: ${{ secrets.TURBO_CODE }}
defaults:
run:
working-directory: native_gg
permissions:
contents: read
deployments: write
name: Deploy
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 8.15.1
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: add .env file
run: echo '${{ secrets.CLIENT_SECRETS }}' > .env
- name: build
run: pnpm expo export -p web
- name: deploy website
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: gg-app
directory: native_gg/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}