|
| 1 | +# This file was generated by upptime/[email protected] |
| 2 | +# |
| 3 | +# =============================== |
| 4 | +# Do not edit this file directly! |
| 5 | +# =============================== |
| 6 | +# |
| 7 | +# Your changes will be overwritten when the template updates (daily) |
| 8 | +# Instead, change your .upptimerc.yml configuration: https://upptime.js.org/docs |
| 9 | + |
| 10 | +name: Setup CI |
| 11 | +on: |
| 12 | + push: |
| 13 | + paths: |
| 14 | + - ".upptimerc.yml" |
| 15 | + repository_dispatch: |
| 16 | + types: [setup] |
| 17 | + workflow_dispatch: |
| 18 | +jobs: |
| 19 | + release: |
| 20 | + name: Setup Upptime |
| 21 | + runs-on: ubuntu-18.04 |
| 22 | + steps: |
| 23 | + - name: Checkout |
| 24 | + |
| 25 | + with: |
| 26 | + ref: ${{ github.head_ref }} |
| 27 | + token: ${{ secrets.GH_PAT }} |
| 28 | + - name: Update template |
| 29 | + |
| 30 | + with: |
| 31 | + command: "update-template" |
| 32 | + env: |
| 33 | + GH_PAT: ${{ secrets.GH_PAT }} |
| 34 | + - name: Update response time |
| 35 | + |
| 36 | + with: |
| 37 | + command: "response-time" |
| 38 | + env: |
| 39 | + GH_PAT: ${{ secrets.GH_PAT }} |
| 40 | + SECRETS_CONTEXT: ${{ toJson(secrets) }} |
| 41 | + - name: Update summary in README |
| 42 | + |
| 43 | + with: |
| 44 | + command: "readme" |
| 45 | + env: |
| 46 | + GH_PAT: ${{ secrets.GH_PAT }} |
| 47 | + - name: Generate graphs |
| 48 | + uses: benc-uk/workflow-dispatch@v1 |
| 49 | + with: |
| 50 | + workflow: Graphs CI |
| 51 | + token: ${{ secrets.GH_PAT }} |
| 52 | + - name: Generate site |
| 53 | + |
| 54 | + with: |
| 55 | + command: "site" |
| 56 | + env: |
| 57 | + GH_PAT: ${{ secrets.GH_PAT }} |
| 58 | + - uses: peaceiris/[email protected] |
| 59 | + name: GitHub Pages Deploy |
| 60 | + with: |
| 61 | + github_token: ${{ secrets.GH_PAT }} |
| 62 | + publish_dir: "site/status-page/__sapper__/export/" |
| 63 | + user_name: "Upptime Bot" |
| 64 | + |
0 commit comments