diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index e1200344dc..931a4ef258 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -194,27 +194,3 @@ jobs: name: SasView-Installer-${{ matrix.os }}-${{ matrix.python-version }}-${{ github.sha }} path: installers/dist/SasView5.dmg if-no-files-found: error - - - name: Declare env variables on push only - if: github.event_name == 'push' - shell: bash - run: echo "BRANCH_NAME=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - - name: Declare env variables on pull_request only - if: github.event_name == 'pull_request' - shell: bash - run: echo "BRANCH_NAME=$GITHUB_HEAD_REF" >> $GITHUB_ENV - - - name: Upload installer to GitHub releases - #Release and main branch will be treated differently - if: env.BRANCH_NAME != 'main' - uses: ncipollo/release-action@v1 - with: - draft: true - prerelease: true - allowUpdates: true - replacesArtifacts: true - token: ${{ secrets.GITHUB_TOKEN }} - artifacts: "installers/dist/SasView5.dmg, installers/Output/setupSasView.exe" - name: ${{ env.BRANCH_NAME }} - tag: ${{ env.BRANCH_NAME }}