Skip to content

changed back to node #18

changed back to node

changed back to node #18

on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install bun runtime
uses: oven-sh/setup-bun@v1
- name: Install Dependencies
run: bun install
- name: Run Prettier
run: bun prettier
- name: Build
run: bun run build
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: endpoem
directory: dist/
gitHubToken: ${{ secrets.GITHUB_TOKEN }}