Skip to content

Commit

Permalink
ci(mkdocs): use github-pages-deploy-action to deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Dec 27, 2020
1 parent 2e1f29c commit d87e0f4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/mkdocs.yml
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- master
- ci
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -11,5 +12,17 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force

- run: pip install mkdocs mkdocs-material
- run: mkdocs build

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: site
CLEAN: true
TARGET_FOLDER: |
$(semantic-release version --noop 2>&1 >/dev/null | sed -n 's/Current version: \(.*\)/\1/p')
SINGLE_COMMIT: true

0 comments on commit d87e0f4

Please sign in to comment.