Skip to content

Commit 5e37af9

Browse files
committed
Allow deploying the website manually and add cron job for deploy
1 parent 49998f0 commit 5e37af9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
branches:
55
- master
66
pull_request:
7+
# Allow rebuilding/redeploying the web manually
8+
workflow_dispatch:
9+
schedule:
10+
# Rebuild the web periodically at 22:00 UTC to update team API contents and Rust version
11+
- cron: '0 22 * * *'
712
env:
813
RUST_BACKTRACE: 1
914
jobs:
@@ -44,7 +49,7 @@ jobs:
4449

4550
deploy:
4651
needs: [ build ]
47-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
52+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
4853
environment:
4954
name: github-pages
5055
permissions:

0 commit comments

Comments
 (0)