add GitHub Pages for post-mortems

- Index page listing all incident reports
- GHA workflow deploys post-mortems/ on push
- Available at viktorbarzin.github.io/infra/
This commit is contained in:
Viktor Barzin 2026-03-16 22:16:05 +00:00
parent fb66676d7b
commit 6cc4d526f1
2 changed files with 154 additions and 0 deletions

View file

@ -0,0 +1,32 @@
name: Deploy Post-Mortems to GitHub Pages
on:
push:
branches: [master]
paths:
- 'post-mortems/**'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: post-mortems
- id: deployment
uses: actions/deploy-pages@v4