Typo corrections #122
Workflow file for this run
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: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
# - main | |
- translation | |
jobs: | |
deploy-to-pages: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: 🧳 Cache pip | |
uses: actions/cache@v2 | |
with: | |
# This path is specific to Ubuntu | |
path: ~/.cache/pip | |
# Look to see if there is a cache hit for the corresponding requirements file | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
${{ runner.os }}- | |
- name: 👷 init and preprocessing | |
shell: bash | |
run: | | |
pip install --upgrade pip | |
pip install invoke | |
- name: Site initialization | |
run: | | |
invoke virtualenv | |
invoke run -t update-downloads | |
invoke run -t update-docs | |
- name: 🔧 Build HTML | |
run: | | |
invoke doc.clean | |
invoke doc | |
invoke intl -l zh_CN | |
invoke intl -l de_DE | |
invoke run -t post-process | |
- name: 🚀 Deploy to GitHub pages | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: output/ | |
# - name: delete temp | |
# run: | | |
# rm -rf Nuitka-main/ | |
# rm -rf Nuitka-develop/ | |
# rm -rf Nuitka-factory/ | |
# rm -rf output/doctrees/ |