Merge pull request #1 from isontheline/link-readme-doc #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update dRAGon Documentation | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy_mkdocs_content: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/10#issuecomment-585752881 | |
# Number of commits to fetch. 0 indicates all history. | |
# Default: 1 | |
fetch-depth: 0 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
architecture: 'x64' | |
- run: pip install mkdocs=="1.4.3" | |
- run: pip install mkdocs-material=="9.0.4" | |
- run: pip install mkdocs-git-revision-date-localized-plugin | |
- run: pip install mkdocs-redirects | |
- run: cd docs; mkdocs build --clean | |
- run: echo "dragon.okinawa" > docs/site/CNAME | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: docs/site |