2024-09-22 20:44:11 -05:00
|
|
|
name: Deploy Docs
|
2023-04-27 09:07:59 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags: ["v*.*.*"]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
2024-09-22 20:44:11 -05:00
|
|
|
runs-on: ubuntu-latest
|
2023-04-27 09:07:59 -05:00
|
|
|
permissions:
|
2024-09-22 20:44:11 -05:00
|
|
|
id-token: write
|
|
|
|
pages: write
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deploy.outputs.page_url }}
|
2023-04-27 09:07:59 -05:00
|
|
|
steps:
|
2024-09-22 20:40:56 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-04-27 09:07:59 -05:00
|
|
|
|
2024-09-22 20:39:11 -05:00
|
|
|
- uses: jiro4989/setup-nim-action@v2
|
2023-04-27 09:07:59 -05:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build Docs
|
|
|
|
run: nimble docs
|
|
|
|
|
2024-09-22 20:44:11 -05:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-pages-artifact@v3
|
2023-04-27 09:07:59 -05:00
|
|
|
with:
|
2024-09-22 20:44:11 -05:00
|
|
|
path: "public/"
|
|
|
|
|
|
|
|
- name: Deploy artifact to GitHub Pages
|
|
|
|
id: deploy
|
|
|
|
uses: actions/deploy-pages@v4
|