site.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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: Static Site CI
  15. on:
  16. schedule:
  17. - cron: "0 1 * * *"
  18. repository_dispatch:
  19. types: [static_site]
  20. workflow_dispatch:
  21. jobs:
  22. release:
  23. name: Build and deploy site
  24. runs-on: ubuntu-latest
  25. if: "!contains(github.event.head_commit.message, '[skip ci]')"
  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: Generate site
  33. uses: upptime/uptime-monitor@v1.38.0
  34. with:
  35. command: "site"
  36. env:
  37. GH_PAT: ${{ secrets.GH_PAT || github.token }}
  38. - uses: peaceiris/actions-gh-pages@v4
  39. name: GitHub Pages Deploy
  40. with:
  41. github_token: ${{ secrets.GH_PAT || github.token }}
  42. publish_dir: "site/status-page/__sapper__/export/"
  43. force_orphan: "false"
  44. user_name: "Upptime Bot"
  45. user_email: "73812536+upptime-bot@users.noreply.github.com"