diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07c95398..3603ec32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,9 +88,14 @@ jobs: - id: branch-name uses: tj-actions/branch-names@v7.0.7 - name: Ensure we can checkout gh-pages + if: steps.branch-names.outputs.is_tag == 'true' run: | git checkout gh-pages - git checkout ${{ steps.branch-name.outputs.current_branch }} + git checkout ${{ steps.branch-names.outputs.tag }} + if: steps.branch-names.outputs.is_tag == 'false' + run: | + git checkout gh-pages + git checkout ${{ steps.branch-names.outputs.current_branch }} - name: Setup Python 3.8 uses: actions/setup-python@v2 with: