Skip to content

Commit

Permalink
gh-actions: Add publish-docs action
Browse files Browse the repository at this point in the history
This moves docs building/deployment from CircleCI to github actions
  • Loading branch information
cfergeau authored and anjannath committed Apr 21, 2022
1 parent bc5accc commit 8f0f314
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and publish docs
on:
push:
branches:
- "main"
- "old-main"
pull_request: {}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Build docs
run: CONTAINER_RUNTIME=docker make build_docs
- name: Check links in docs
run: CONTAINER_RUNTIME=docker make docs_check_links
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build

0 comments on commit 8f0f314

Please sign in to comment.