update docs action
authorClaromes <clarissamendes@alunos.utfpr.edu.br>
Tue, 11 Feb 2025 03:24:57 +0000 (00:24 -0300)
committerClaromes <clarissamendes@alunos.utfpr.edu.br>
Tue, 11 Feb 2025 03:24:57 +0000 (00:24 -0300)
.github/workflows/docs.yml

index d46ebd3a49cb7f9e61e34216d9884d14d3acf7d7..85db66c2fb6f23b1e7859f471aef2ad9dae9cff9 100644 (file)
@@ -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