Repository navigation
63 lines (62 loc) · 2.21 KB
/
Copy pathsetup.yml
File metadata and controls
63 lines (62 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# Generated by Upptime v1.41.0 (https://github.com/upptime/upptime), then
# hardened on 2026-10-24: actions are pinned to commit SHAs, no secrets are
# passed to them, and the token gets only the permissions it needs.
# The "update-template" step is removed: it regenerated these workflows from
# the upstream template and would undo the hardening. Change sites in
# .upptimerc.yml as usual; this workflow then refreshes the README and site.
#
name: Setup CI
on:
push:
branches: [master]
paths:
- ".upptimerc.yml"
repository_dispatch:
types: [setup]
workflow_dispatch:
permissions:
contents: write
actions: write
issues: write
jobs:
release:
name: Setup Upptime
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_PAT || github.token }}
- name: Update response time
uses: upptime/uptime-monitor@8be193bbcb957a3a917d2bb16a0c96959778a889 # v1.44.1
with:
command: "response-time"
env:
GH_PAT: ${{ secrets.GH_PAT || github.token }}
- name: Update summary in README
uses: upptime/uptime-monitor@8be193bbcb957a3a917d2bb16a0c96959778a889 # v1.44.1
with:
command: "readme"
env:
GH_PAT: ${{ secrets.GH_PAT || github.token }}
- name: Generate graphs
uses: benc-uk/workflow-dispatch@d004979be141727c7a17c28f603e2facc40d0855 # v1
with:
workflow: Graphs CI
token: ${{ secrets.GH_PAT || github.token }}
- name: Generate site
uses: upptime/uptime-monitor@8be193bbcb957a3a917d2bb16a0c96959778a889 # v1.44.1
with:
command: "site"
env:
GH_PAT: ${{ secrets.GH_PAT || github.token }}
- uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4
name: GitHub Pages Deploy
with:
github_token: ${{ secrets.GH_PAT || github.token }}
publish_dir: "site/status-page/__sapper__/export/"
force_orphan: "false"
user_name: "Upptime Bot"
user_email: "73812536+upptime-bot@users.noreply.github.com"