Update to 0.2.14 from 'dev' branch #36
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: Publish docs via GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v2 | |
- name: Remove testing and other doc artifacts (As much as feasible at the moment) | |
run: | | |
find AoE2ScenarioParser/datasets -maxdepth 2 -name '*.py' -exec perl -pie 's/ >>> .*//' {} + | |
find AoE2ScenarioParser/datasets -maxdepth 2 -name '*.py' -exec perl -pie 's/ <.*: .*>//' {} + | |
find AoE2ScenarioParser/datasets -maxdepth 2 -name '*.py' -exec perl -pie 's/ \*\*\(?:\|Examples\|Methods\|Inherited\)\*\*:\?//' {} + | |
find AoE2ScenarioParser/datasets -maxdepth 2 -name '*.py' -exec perl -pie 's/\[([A-Za-z0-9 ]*)\]\((?!https)[^(]+\)/$1/g' {} + | |
- name: Deploy docs | |
uses: mhausenblas/mkdocs-deploy-gh-pages@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CONFIG_FILE: mkdocs.yml | |
EXTRA_PACKAGES: build-base | |
REQUIREMENTS: requirements/dev.txt |