Skip to content

Commit

Permalink
Merge branch 'docs'
Browse files Browse the repository at this point in the history
  • Loading branch information
fbunt committed May 16, 2024
2 parents 60a0e33 + 8246041 commit 59a01e7
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Publish Docs

on:
push:
branches: [master]
release:
types: [created]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
docs:
name: Publish Docs
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
persist-credentioals: false
- name: Setup Conda
uses: mamba-org/setup-micromamba@v1
with:
init-shell: bash
environment-name: rstools-docs
with:
environment-file: requirements/docs.yml

- name: Sphinx build
shell: bash
run: |
micromamba run -n rstools-docs sphinx-build -b html docs docs/_build/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ github.event_name == 'release' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/_build/
clean: false
target-folder: ${{ github.ref }}

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ github.event_name == 'push' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/_build/
clean: false
target-folder: ${{ github.ref }}

0 comments on commit 59a01e7

Please sign in to comment.