molecule-ai-status/.github/workflows/uptime.yml
Hongming Wang 50d221341b fix(ci): pin Upptime to v1.41.0 + add gh-pages deploy step
Static Site CI was building the Sapper export successfully but had no
step to publish it — `gh-pages` branch never existed so GitHub Pages
couldn't serve anything. Matches the canonical Upptime template:

- static-site.yml: adds peaceiris/actions-gh-pages@v4 step publishing
  site/status-page/__sapper__/export/ to gh-pages
- All 5 workflows: pin upptime/uptime-monitor to @v1.41.0 instead of
  @master (reproducibility + matches upstream template expectations)
2026-04-15 14:25:53 -07:00

36 lines
860 B
YAML

name: Uptime CI
on:
repository_dispatch:
types: [uptime]
schedule:
# Every 5 minutes. GitHub Actions caps schedule resolution at ~5min
# in practice; requesting */1 or */3 just gets coalesced.
- cron: "*/5 * * * *"
workflow_dispatch:
push:
# Re-run whenever the sites list changes so new endpoints get an
# immediate first check instead of waiting up to 5 minutes.
branches:
- main
paths:
- ".upptimerc.yml"
jobs:
release:
name: Check status of endpoints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: upptime/uptime-monitor@v1.41.0
with:
command: "update"
env:
GH_PAT: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
permissions:
contents: write
issues: write
pull-requests: write