feat: Add per-server forwarding configuration in Velocity #436
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Build Preview Deployment" | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| jobs: | |
| build-preview: | |
| runs-on: "ubuntu-latest" | |
| name: "Build Preview Site and Upload Build Artifact" | |
| steps: | |
| - name: "checkout" | |
| uses: "actions/checkout@v4" | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| - name: "setup pnpm" | |
| uses: "pnpm/action-setup@v4" | |
| - name: "setup node" | |
| uses: "actions/setup-node@v4" | |
| with: | |
| cache: "pnpm" | |
| node-version: 20 | |
| - name: "setup d2" | |
| run: "curl -fsSL https://d2lang.com/install.sh | sh -s --" | |
| - name: "install dependencies" | |
| run: "pnpm install" | |
| - name: "build" | |
| run: "pnpm build" | |
| - name: "copy cloudflare configuration files to build directory" | |
| run: | | |
| cp _headers dist/ | |
| cp _redirects dist/ | |
| - name: "upload build artifact" | |
| uses: "actions/upload-artifact@v4" | |
| with: | |
| name: "preview-build" | |
| path: "dist" |