generated from upptime/upptime
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (65 loc) · 2.17 KB
/
setup.yml
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
64
65
66
# Do not edit this file directly!
# ===============================
#
# Your changes will be overwritten when the template updates (weekly)
# Instead, propose changes to the template: https://github.com/upptime/upptime
# Or, change your configuration in .upptimerc.yml
name: Setup CI
on:
push:
paths:
- ".upptimerc.yml"
repository_dispatch:
types: [setup]
workflow_dispatch:
jobs:
release:
name: Setup Upptime
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2.3.3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_PAT }}
- name: Update response time
uses: upptime/uptime-monitor@master
with:
command: "response-time"
env:
GH_PAT: ${{ secrets.GH_PAT }}
SLACK_APP_ACCESS_TOKEN: ${{ secrets.SLACK_APP_ACCESS_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
CUSTOM_WEBHOOK: ${{ secrets.CUSTOM_WEBHOOK }}
SECRET_SITE: ${{ secrets.SECRET_SITE }}
SECRET_SITE_1: ${{ secrets.SECRET_SITE_1 }}
SECRET_SITE_2: ${{ secrets.SECRET_SITE_2 }}
SECRET_SITE_3: ${{ secrets.SECRET_SITE_3 }}
SECRET_SITE_4: ${{ secrets.SECRET_SITE_4 }}
SECRET_SITE_5: ${{ secrets.SECRET_SITE_5 }}
SECRET_SITE_6: ${{ secrets.SECRET_SITE_6 }}
SECRET_SITE_7: ${{ secrets.SECRET_SITE_7 }}
SECRET_SITE_8: ${{ secrets.SECRET_SITE_8 }}
SECRET_SITE_9: ${{ secrets.SECRET_SITE_9 }}
- name: Update response time
uses: upptime/uptime-monitor@master
with:
command: "readme"
env:
GH_PAT: ${{ secrets.GH_PAT }}
- name: Generate graphs
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Graphs CI
token: ${{ secrets.GH_PAT }}
- name: Generate site
uses: upptime/uptime-monitor@master
with:
command: "site"
env:
GH_PAT: ${{ secrets.GH_PAT }}
- uses: maxheld83/ghpages@v0.3.0
name: GitHub Pages Deploy
env:
BUILD_DIR: "site/status-page/__sapper__/export/"
GH_PAT: ${{ secrets.GH_PAT }}