Skip to content

Commit 1d27736

Browse files
committed
feat: add deploy action, accept secrets
1 parent b5f1383 commit 1d27736

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
name: Build
1+
name: Deploy
2+
23
on:
34
push:
4-
pull_request:
5-
repository_dispatch:
5+
branches:
6+
- main
7+
68
jobs:
79
deploy:
810
runs-on: ubuntu-latest
9-
timeout-minutes: 60
10-
needs: test
11+
name: Deploy
1112
steps:
1213
- uses: actions/checkout@v2
1314
- name: Publish
1415
uses: cloudflare/[email protected]
16+
with:
17+
apiToken: ${{ secrets.CF_API_TOKEN }}
18+
env:
19+
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Tauri Update Server: Cloudflare
22

3+
[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/killeencode/tauri-update-cloudflare)
4+
35
Much credit to [@lemarier](https://github.com/lemarier) for the underlying logic at https://github.com/lemarier/updater-deno
46

57
## Cloudflare Wrangler

0 commit comments

Comments
 (0)