Create cloudflare-deploy.yml

This commit is contained in:
Alicia Sykes 2021-06-12 13:42:14 +01:00 committed by GitHub
parent 7b9fd97433
commit 2c6799125f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
.github/workflows/cloudflare-deploy.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Build
on:
push:
pull_request:
repository_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@master
- name: Build site
run: 'yarn && Yarn build'
- name: Publish
uses: cloudflare/wrangler-action@1.2.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}