setup.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.38.0
  10. # GitHub-powered open-source uptime monitor and status page by Anand Chowdhary
  11. # * Source: https://github.com/upptime/upptime
  12. # * Docs and more: https://upptime.js.org
  13. # * More by Anand Chowdhary: https://anandchowdhary.com
  14. name: Setup CI
  15. on:
  16. push:
  17. paths:
  18. - ".upptimerc.yml"
  19. repository_dispatch:
  20. types: [setup]
  21. workflow_dispatch:
  22. jobs:
  23. release:
  24. name: Setup Upptime
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Checkout
  28. uses: actions/checkout@v4
  29. with:
  30. ref: ${{ github.head_ref }}
  31. token: ${{ secrets.GH_PAT || github.token }}
  32. - name: Update template
  33. uses: upptime/uptime-monitor@v1.38.0
  34. with:
  35. command: "update-template"
  36. env:
  37. GH_PAT: ${{ secrets.GH_PAT || github.token }}
  38. - name: Update response time
  39. uses: upptime/uptime-monitor@v1.38.0
  40. with:
  41. command: "response-time"
  42. env:
  43. GH_PAT: ${{ secrets.GH_PAT || github.token }}
  44. SECRETS_CONTEXT: ${{ toJson(secrets) }}
  45. - name: Update summary in README
  46. uses: upptime/uptime-monitor@v1.38.0
  47. with:
  48. command: "readme"
  49. env:
  50. GH_PAT: ${{ secrets.GH_PAT || github.token }}
  51. - name: Generate graphs
  52. uses: benc-uk/workflow-dispatch@v1
  53. with:
  54. workflow: Graphs CI
  55. token: ${{ secrets.GH_PAT || github.token }}
  56. - name: Generate site
  57. uses: upptime/uptime-monitor@v1.38.0
  58. with:
  59. command: "site"
  60. env:
  61. GH_PAT: ${{ secrets.GH_PAT || github.token }}
  62. - uses: peaceiris/actions-gh-pages@v4
  63. name: GitHub Pages Deploy
  64. with:
  65. github_token: ${{ secrets.GH_PAT || github.token }}
  66. publish_dir: "site/status-page/__sapper__/export/"
  67. force_orphan: "false"
  68. user_name: "Upptime Bot"
  69. user_email: "73812536+upptime-bot@users.noreply.github.com"