Skip to content

Commit 4a9f1db

Browse files
committed
chore: Update workflow to run scheduled builds on staging
1 parent dfee84a commit 4a9f1db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Deploy Hugo site to Pages
33
on:
44
push:
55
branches: ["main", "staging"]
6+
schedule:
7+
# Run every 15 minutes on the staging branch for testing
8+
- cron: '*/15 * * * *'
69

710
# Standard permissions required for GitHub Pages deployment.
811
permissions:
@@ -19,6 +22,8 @@ env:
1922

2023
jobs:
2124
build:
25+
# Only run scheduled builds on the staging branch.
26+
if: github.event_name != 'schedule' || github.ref == 'refs/heads/staging'
2227
runs-on: ubuntu-24.04
2328
steps:
2429
# 1. Prepare the environment by checking out code and setting up tools.

0 commit comments

Comments
 (0)