Skip to content

Fix integration tests #31

Fix integration tests

Fix integration tests #31

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