|
| 1 | +# Do not edit this file directly! |
| 2 | +# =============================== |
| 3 | +# |
| 4 | +# Your changes will be overwritten when the template updates (weekly) |
| 5 | +# Instead, propose changes to the template: https://github.com/upptime/upptime |
| 6 | +# Or, change your configuration in .upptimerc.yml |
| 7 | + |
| 8 | +name: Setup CI |
| 9 | +on: |
| 10 | + push: |
| 11 | + paths: |
| 12 | + - ".upptimerc.yml" |
| 13 | + repository_dispatch: |
| 14 | + types: [setup] |
| 15 | + workflow_dispatch: |
| 16 | +jobs: |
| 17 | + release: |
| 18 | + name: Setup Upptime |
| 19 | + runs-on: ubuntu-18.04 |
| 20 | + steps: |
| 21 | + - name: Checkout |
| 22 | + |
| 23 | + with: |
| 24 | + ref: ${{ github.head_ref }} |
| 25 | + token: ${{ secrets.GH_PAT }} |
| 26 | + - name: Update response time |
| 27 | + uses: upptime/uptime-monitor@master |
| 28 | + with: |
| 29 | + command: "response-time" |
| 30 | + env: |
| 31 | + GH_PAT: ${{ secrets.GH_PAT }} |
| 32 | + SLACK_APP_ACCESS_TOKEN: ${{ secrets.SLACK_APP_ACCESS_TOKEN }} |
| 33 | + DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} |
| 34 | + CUSTOM_WEBHOOK: ${{ secrets.CUSTOM_WEBHOOK }} |
| 35 | + SECRET_SITE: ${{ secrets.SECRET_SITE }} |
| 36 | + SECRET_SITE_1: ${{ secrets.SECRET_SITE_1 }} |
| 37 | + SECRET_SITE_2: ${{ secrets.SECRET_SITE_2 }} |
| 38 | + SECRET_SITE_3: ${{ secrets.SECRET_SITE_3 }} |
| 39 | + SECRET_SITE_4: ${{ secrets.SECRET_SITE_4 }} |
| 40 | + SECRET_SITE_5: ${{ secrets.SECRET_SITE_5 }} |
| 41 | + SECRET_SITE_6: ${{ secrets.SECRET_SITE_6 }} |
| 42 | + SECRET_SITE_7: ${{ secrets.SECRET_SITE_7 }} |
| 43 | + SECRET_SITE_8: ${{ secrets.SECRET_SITE_8 }} |
| 44 | + SECRET_SITE_9: ${{ secrets.SECRET_SITE_9 }} |
| 45 | + - name: Update response time |
| 46 | + uses: upptime/uptime-monitor@master |
| 47 | + with: |
| 48 | + command: "readme" |
| 49 | + env: |
| 50 | + GH_PAT: ${{ secrets.GH_PAT }} |
| 51 | + - name: Generate graphs |
| 52 | + uses: benc-uk/workflow-dispatch@v1 |
| 53 | + with: |
| 54 | + workflow: Graphs CI |
| 55 | + token: ${{ secrets.GH_PAT }} |
| 56 | + - name: Generate site |
| 57 | + uses: upptime/uptime-monitor@master |
| 58 | + with: |
| 59 | + command: "site" |
| 60 | + env: |
| 61 | + GH_PAT: ${{ secrets.GH_PAT }} |
| 62 | + - uses: maxheld83/[email protected] |
| 63 | + name: GitHub Pages Deploy |
| 64 | + env: |
| 65 | + BUILD_DIR: "site/status-page/__sapper__/export/" |
| 66 | + GH_PAT: ${{ secrets.GH_PAT }} |
0 commit comments