|
| 1 | +# |
| 2 | +# =============================== |
| 3 | +# Do not edit this file directly! |
| 4 | +# =============================== |
| 5 | +# |
| 6 | +# Your changes will be overwritten when the Upptime template updates (by default, weekly) |
| 7 | +# Instead, change .upptimerc.yml configuration and the workflows will be generated accordingly. |
| 8 | +# |
| 9 | +# 🔼 Upptime @v1.36.4 |
| 10 | +# GitHub-powered open-source uptime monitor and status page by Anand Chowdhary |
| 11 | + |
| 12 | +# * Source: https://github.com/upptime/upptime |
| 13 | +# * Docs and more: https://upptime.js.org |
| 14 | +# * More by Anand Chowdhary: https://anandchowdhary.com |
| 15 | + |
| 16 | + |
| 17 | +name: Setup CI |
| 18 | +on: |
| 19 | + push: |
| 20 | + paths: |
| 21 | + - ".upptimerc.yml" |
| 22 | + repository_dispatch: |
| 23 | + types: [setup] |
| 24 | + workflow_dispatch: |
| 25 | +jobs: |
| 26 | + release: |
| 27 | + name: Setup Upptime |
| 28 | + runs-on: ubuntu-latest |
| 29 | + steps: |
| 30 | + - name: Checkout |
| 31 | + uses: actions/checkout@v3 |
| 32 | + with: |
| 33 | + ref: ${{ github.head_ref }} |
| 34 | + token: ${{ secrets.GH_PAT || github.token }} |
| 35 | + - name: Update template |
| 36 | + uses: upptime/uptime-monitor@v1.36.4 |
| 37 | + with: |
| 38 | + command: "update-template" |
| 39 | + env: |
| 40 | + GH_PAT: ${{ secrets.GH_PAT || github.token }} |
| 41 | + - name: Update response time |
| 42 | + uses: upptime/uptime-monitor@v1.36.4 |
| 43 | + with: |
| 44 | + command: "response-time" |
| 45 | + env: |
| 46 | + GH_PAT: ${{ secrets.GH_PAT || github.token }} |
| 47 | + SECRETS_CONTEXT: ${{ toJson(secrets) }} |
| 48 | + - name: Update summary in README |
| 49 | + uses: upptime/uptime-monitor@v1.36.4 |
| 50 | + with: |
| 51 | + command: "readme" |
| 52 | + env: |
| 53 | + GH_PAT: ${{ secrets.GH_PAT || github.token }} |
| 54 | + - name: Generate graphs |
| 55 | + uses: benc-uk/workflow-dispatch@v1 |
| 56 | + with: |
| 57 | + workflow: Graphs CI |
| 58 | + token: ${{ secrets.GH_PAT || github.token }} |
| 59 | + - name: Generate site |
| 60 | + uses: upptime/uptime-monitor@v1.36.4 |
| 61 | + with: |
| 62 | + command: "site" |
| 63 | + env: |
| 64 | + GH_PAT: ${{ secrets.GH_PAT || github.token }} |
| 65 | + - uses: peaceiris/actions-gh-pages@v3.7.3 |
| 66 | + name: GitHub Pages Deploy |
| 67 | + with: |
| 68 | + github_token: ${{ secrets.GH_PAT || github.token }} |
| 69 | + publish_dir: "site/status-page/__sapper__/export/" |
| 70 | + force_orphan: "false" |
| 71 | + user_name: "Upptime Bot" |
| 72 | + user_email: "73812536+upptime-bot@users.noreply.github.com" |
0 commit comments