Skip to content

Merge pull request #65 from C2SM/icon-2024.01 #7

Merge pull request #65 from C2SM/icon-2024.01

Merge pull request #65 from C2SM/icon-2024.01 #7

Workflow file for this run

name: Build and Deploy Documentation to Tags
on:
push:
tags:
- '*'
jobs:
deploy-docs-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Build docs
uses: C2SM/sphinx-action@sphinx-latest
with:
build-command: "sphinx-build -b html . _build"
docs-folder: "docs/"
- name: Deploy on GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build
destination_dir: ${{ steps.get_release.outputs.tag_name }}
allow_empty_commit: true