migrate to bun #47
This file contains 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: Cloudflare Pages Deployer | |
on: push | |
# Install and cache all pnpm dependencies | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build for development | |
run: ./.ci-build.sh | |
- name: Deploy to Pages | |
run: ./.ci-deploy.sh | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_PAGES_API_TOKEN }} | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_PAGES_ACCOUNT_ID }} | |
CLOUDFLARE_PAGES_BRANCH: ${{ vars.CF_PAGES_BRANCH }} | |
CLOUDFLARE_PAGES_NAME: ${{ vars.CF_PAGES_NAME }} |