Update June, add July #484
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 blog to gh-pages | |
on: | |
workflow_dispatch: | |
inputs: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | |
with: | |
extra_args: --all-files --show-diff-on-failure --color always | |
build: | |
name: Deploy job | |
runs-on: ubuntu-latest | |
needs: [pre-commit] | |
if: > | |
github.ref == 'refs/heads/master' && | |
github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- run: pip install -r requirements.txt | |
- run: ./deploy-to-gh-pages.sh | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
GOOGLE_ANALYTICS: ${{ secrets.GOOGLE_ANALYTICS }} |