2023-04-27 09:07:59 -05:00
|
|
|
name: GitHub Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags: ["v*.*.*"]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./public
|