-
-
Notifications
You must be signed in to change notification settings - Fork 24
33 lines (32 loc) · 1.01 KB
/
publish.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
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: |
npm install
npx patch-package
npx expo export:web
cat > web-build/_headers <<EOF
/*
X-Frame-Options: DENY
Access-Control-Allow-Origin: ${DUO_API_URL}
EOF
env:
NODE_OPTIONS: --openssl-legacy-provider
DUO_API_URL: https://api.duolicious.app
DUO_CHAT_URL: wss://chat.duolicious.app
DUO_IMAGES_URL: https://user-images.duolicious.app
DUO_STATUS_URL: https://status.duolicious.app
- uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: a73a8f703a9a1eefac56f84ca6a4c9ac
projectName: duolicious
directory: web-build