diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 5cc6d6ffb..fc826800f 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -74,12 +74,11 @@ jobs: # Update main index if this is a release - name: Update version index + if: github.event_name == 'release' run: | - if [ "${{ github.event_name }}" == "release" ]; then - cd gh-pages - python docs/main_index/render_main_index.py \ - --version "${{ steps.version.outputs.version }}" \ - --date "$(date +'%d.%m.%Y')" + python docs/main_index/render_main_index.py \ + --version "${{ steps.version.outputs.version }}" \ + --date "$(date +'%d.%m.%Y')" - name: Checkout gh-pages uses: actions/checkout@v4