From 1dfa28d277311e337150b18e55d3d9fbcf5b9a01 Mon Sep 17 00:00:00 2001 From: Alex Chan Date: Sat, 10 Aug 2024 20:30:23 +0200 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bc3afdc..9d5a25b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' - name: Install dependencies run: | pip install sphinx sphinx_rtd_theme myst_parser @@ -19,7 +22,6 @@ jobs: sphinx-build source _build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }}