[scripts/capstone.py] Make sure the on-write function takes an argume… #32
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: Generate GithubPages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.event.repository.fork == false | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install pre-requisite | |
run: | | |
sudo apt install gdb-multiarch python3 python3-dev python3-wheel -y | |
version=$(gdb -q -nx -ex 'pi print(f"{sys.version_info.major}.{sys.version_info.minor}", end="")' -ex quit) | |
python${version} -m pip install --requirement docs/requirements.txt --upgrade | |
- name: Build and publish the docs | |
run: | | |
git config --global user.name "hugsy" | |
git config --global user.email "[email protected]" | |
mkdocs gh-deploy --force |