Skip to content

Merge pull request #13 from pulsate-dev/revert #29

Merge pull request #13 from pulsate-dev/revert

Merge pull request #13 from pulsate-dev/revert #29

Workflow file for this run

name: Deploy
on:
push:
branches: main
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
# https://github.com/oven-sh/setup-bun/issues/37#issuecomment-2256820622
uses: oven-sh/setup-bun@feat/implement-wildcard-resolution-into-the-action
with:
bun-version: 1.0.x
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Deploy to Cloudflare Workers
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
precommands: bun run build
command: >
deploy ./build/index.js
--name link-pulsate-dev --compatibility-date "2022-04-05"