Skip to content

update github action versions #20

update github action versions

update github action versions #20

name: Documentation
on:
push:
branches:
- master
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout github repo
uses: actions/checkout@v2
- name: Query version
id: tagger
uses: jimschubert/query-tag-action@v1
with:
commit-ish: "HEAD"
- name: Set version
run: |
echo QPOINT_VERSION=${{steps.tagger.outputs.tag}} >> $GITHUB_ENV
- name: Build docs
uses: ammaraskar/sphinx-action@master
with:
pre-build-command: "apt-get --allow-releaseinfo-change update -y && apt-get install -y python3-dev build-essential"
docs-folder: "docs/"
- name: Checkout pages branch
uses: actions/checkout@v3
with:
ref: gh-pages
path: gh-pages
- name: Commit documentation changes
run: |
cp -r docs/_build/html/* gh-pages/
cp -r docs/*.pdf gh-pages/.
cd gh-pages
touch .nojekyll
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update documentation" -a || true
git push