Skip to content

deploy_to_cf_workers #1

deploy_to_cf_workers

deploy_to_cf_workers #1

Workflow file for this run

name: Deploy to Cloudflare Worker
on:
push:
branches: [ "master" ]
repository_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Deploy
run: |
npm install
npm run publish
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}