chore: set up auth #60
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: Deploy to Cloudflare Pages | |
on: | |
push: | |
jobs: | |
deploy-to-cloudflare: | |
name: Deploy to Cloudflare Pages | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.10.0" | |
- name: Install Bun | |
run: npm install -g bun | |
- name: Wrangler Install | |
run: bun add wrangler | |
- name: Deploy to Cloudflare | |
run: bun run deploy | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} |