added deploy button and github action deploy

This commit is contained in:
alyssadev 2023-09-17 06:34:37 +10:00
parent 2a3e092eea
commit 3e159ac82b
4 changed files with 26 additions and 1 deletions

21
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,21 @@
on:
repository_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@master
- name: Publish
uses: cloudflare/wrangler-action@1.3.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
secrets: |
AUTH_KEY
env:
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
AUTH_KEY: ${{ secrets.AUTH_KEY }}