Add deploy GitHub Action
This commit is contained in:
parent
ef30a7724f
commit
10c2b5c098
3 changed files with 20 additions and 1 deletions
1
.github/FUNDING.yml
vendored
Normal file
1
.github/FUNDING.yml
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
github: Erisa
|
||||||
17
.github/workflows/cloudflare-workers.yml
vendored
Normal file
17
.github/workflows/cloudflare-workers.yml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
name: Deploy to Cloudflare Workers
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Deploy
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Publish
|
||||||
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
dist/*
|
dist/*
|
||||||
worker/*
|
worker/*
|
||||||
node_modules/*
|
node_modules/*
|
||||||
|
.secrets
|
||||||
Loading…
Add table
Reference in a new issue