document deployment testing #4
This file contains hidden or 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: | |
| - master | |
| jobs: | |
| gh-pages-deploy: | |
| name: Deploying to GitHub Pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Setup git config | |
| run: | | |
| git config user.name "GitHub Actions Bot" | |
| git config user.email "<>" | |
| - name: Install packages | |
| run: | | |
| pip3 install -r requirements.txt | |
| - name: Build and deploy to gh-pages | |
| run: | | |
| git checkout --orphan gh-pages-test | |
| chmod +x make.sh md2html.py | |
| ./make.sh | |
| git --work-tree out add --all | |
| git --work-tree out commit -m "Automated out build" | |
| git push origin HEAD:gh-pages --force |