-
Notifications
You must be signed in to change notification settings - Fork 526
46 lines (35 loc) · 1.08 KB
/
cloudflare-pages.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
name: Cloudflare Pages
on:
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
name: Deploy to Cloudflare Pages
runs-on: ubuntu-20.04
env:
# Environment variables that are injected into the build
ENABLE_EXPERIMENTAL_COREPACK: 1
steps:
- uses: actions/[email protected]
with:
lfs: true
submodules: true
- uses: actions/[email protected]
with:
node-version: 16.17
- run: corepack enable
- run: yarn install --immutable
- run: yarn web:build:prod
- name: vercel-cloudflare compatibility
run: |
cp web/.cloudflare/* web/.webpack/
- uses: cloudflare/[email protected]
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
gitHubToken: ${{ secrets.FOXGLOVEBOT_GITHUB_TOKEN }}
branch: ${{ github.head_ref || github.ref_name }}
projectName: foxglove-studio-oss
directory: web/.webpack