Skip to content

Commit

Permalink
updated workflow to publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
madeinoz67 committed Mar 12, 2021
1 parent 70f404e commit e53e046
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,30 @@ on:
workflows: ["Release"]
types:
- completed
env:
PYTHON_VERSION: 3.x

jobs:
build:
name: Build and Deploy docs
documentation:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Checkout main
- name: Checkout repository
uses: actions/checkout@v2

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
- name: Set up Python runtime
uses: actions/setup-python@v1
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Python dependencies
run: |
pip install mkdocs-material \
mkdocs-macros-plugin
- name: Deploy documentation
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
run: |
mkdocs gh-deploy --force
mkdocs --version

0 comments on commit e53e046

Please sign in to comment.