diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml new file mode 100644 index 0000000..66de136 --- /dev/null +++ b/.github/workflows/pages.yaml @@ -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