From: Claromes Date: Tue, 11 Feb 2025 03:24:57 +0000 (-0300) Subject: update docs action X-Git-Url: https://git.claromes.com/?a=commitdiff_plain;h=a238b2174e11e254f2ef25e47cdecf0234b3ac17;p=waybacktweets.git update docs action --- diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d46ebd3..85db66c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,6 +7,7 @@ permissions: jobs: docs: + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -27,7 +28,7 @@ jobs: poetry run sphinx-build -b html . _build cp -r _build/* ../gh-pages/ - name: Deploy documentation - if: ${{ github.event_name == 'push' }} + if: github.event_name == 'push' uses: JamesIves/github-pages-deploy-action@4.1.4 with: branch: gh-pages