mirror of
https://github.com/release-engineering/repo-autoindex.git
synced 2025-02-23 13:42:52 +00:00
Merge pull request #1 from rohanpm/docs-wf
actions: add workflow for publishing docs
This commit is contained in:
commit
efe4b61551
1 changed files with 28 additions and 0 deletions
28
.github/workflows/docs.yml
vendored
Normal file
28
.github/workflows/docs.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: Publish docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.9
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: sudo apt-get install -y libkrb5-dev
|
||||||
|
- name: Install Tox
|
||||||
|
run: pip install tox
|
||||||
|
- name: Run Tox
|
||||||
|
run: tox -e docs
|
||||||
|
- name: Publish
|
||||||
|
uses: JamesIves/github-pages-deploy-action@4.1.3
|
||||||
|
with:
|
||||||
|
branch: gh-pages
|
||||||
|
folder: docs/_build/html
|
Loading…
Add table
Reference in a new issue