diff --git a/.github/workflows/build-upload.yml b/.github/workflows/build-upload.yml index d09052c9..b5987864 100644 --- a/.github/workflows/build-upload.yml +++ b/.github/workflows/build-upload.yml @@ -36,7 +36,7 @@ jobs: echo "ANACONDA_LABEL=main" >> $GITHUB_ENV - name: Change anaconda label on prerelease - if: "github.event.release.prerelease" + if: github.event.release.prerelease run: | echo "ANACONDA_LABEL=rc" >> $GITHUB_ENV @@ -74,7 +74,7 @@ jobs: echo "::set-output name=wheel_filename::$WHEEL" - name: Upload to GitHub release - if: github.event.release + if: ${{ github.event.release || github.event.release.prerelease }} uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}