Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Deploy Proxy

Deploy Proxy #38

Workflow file for this run

name: Deploy Proxy
on:
push:
branches: main
paths:
- .github/workflows/deploy-proxy.yml
- wrangler.toml
workflow_run:
workflows: Test
branches: main
types: completed
jobs:
deploy:
if: github.event_name == 'push' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.4
- name: Setup Bun
uses: oven-sh/setup-bun@v1.2.1
with:
bun-version: latest
- name: Publish
uses: cloudflare/wrangler-action@v3.5.0
env:
WORKER_ENDPOINT: ${{ secrets.WORKER_ENDPOINT }}
with:
accountId: ${{ secrets.CF_ACCOUNT_ID }}
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy