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

Merge pull request #33 from tuhinpal/stage #53

Merge pull request #33 from tuhinpal/stage

Merge pull request #33 from tuhinpal/stage #53

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 }}