From a9a861dd0ae9a4b28eb4ceaf8594a4197337cd03 Mon Sep 17 00:00:00 2001 From: Santiago Soler Date: Wed, 4 Dec 2024 15:02:22 -0800 Subject: [PATCH] Remove duplicated check before deployment --- .github/workflows/python-app.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 8a8a383b..5acde542 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -40,7 +40,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: test - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' # deploy only from main steps: - uses: actions/checkout@v2 - name: Set up Python 3.9 @@ -66,10 +66,8 @@ jobs: python _ext/copy_images.py - name: GitHub Pages - # Only deploy if the event that triggered was a push to main - # (only pushes to main triggers builds, see 'on' condition in the - # beginning of the file) - if: success() && github.event_name == 'push' + # Only deploy if the build was successful + if: success() uses: crazy-max/ghaction-github-pages@v2.5.0 with: build_dir: _build/html