Skip to content

Commit c403be5

Browse files
committed
feat: publish once an hour
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 3ded088 commit c403be5

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/build_docs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,3 @@ jobs:
4545
steps:
4646
- name: Deploy to GitHub Pages
4747
uses: actions/deploy-pages@v4
48-
49-
- name: Trigger Cloudflare Deploy Hook
50-
run: curl -X POST "${{ secrets.CLOUDFLARE_DEPLOY_HOOK }}"

.github/workflows/cf-deploy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish
2+
3+
on:
4+
schedule:
5+
- cron: "0 * * * *" # every hour
6+
workflow_dispatch:
7+
8+
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
9+
permissions: {}
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Trigger Cloudflare Deploy Hook
16+
run: curl -X POST "${{ secrets.CLOUDFLARE_DEPLOY_HOOK }}"

0 commit comments

Comments
 (0)