added github pages action

This commit is contained in:
W Anders
2024-05-06 18:58:32 -06:00
parent d9d798d1f1
commit 22289ec4fe
+31
View File
@@ -0,0 +1,31 @@
---
name: Pages
on:
workflow_dispatch:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wranders/markdown-to-pages-action@v0
with:
out-path: out
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-pages-artifact@v3
with:
path: out
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v2
id: deployment