mirror of
https://github.com/wahyd4/status.git
synced 2026-08-13 15:15:52 +10:00
67 lines
2.2 KiB
YAML
67 lines
2.2 KiB
YAML
# 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 }}
|