Skip to content

Commit

Permalink
Add GitHub Actions deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianfreeman committed Aug 19, 2020
1 parent 373d61a commit b0564ed
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy to Cloudflare Workers

on:
push:
branches:
- master
repository_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
name: Build & Deploy
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: npm install
- name: Publish
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
env:
CF_ACCOUNT_ID: ${{secrets.CF_ACCOUNT_ID}}

0 comments on commit b0564ed

Please sign in to comment.