Files
status/.github/workflows/site.yml
T
2020-11-25 00:36:51 +00:00

35 lines
1.0 KiB
YAML

# Do not edit this file directly!
# ===============================
#
# Your changes will be overwritten when the template updates (weekly)
# Instead, change your .upptimerc.yml configuration: https://upptime.js.org/docs
# Or propose changes to this template: https://github.com/upptime/upptime
name: Static Site CI
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
release:
name: Build and deploy site
runs-on: ubuntu-18.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v2.3.3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_PAT }}
- name: Generate site
uses: upptime/uptime-monitor@v1.17.2
with:
command: "site"
env:
GH_PAT: ${{ secrets.GH_PAT }}
- uses: maxheld83/ghpages@v0.3.0
name: GitHub Pages Deploy
env:
BUILD_DIR: "site/status-page/__sapper__/export/"
GH_PAT: ${{ secrets.GH_PAT }}