diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bc670c..8a3d7ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,13 @@ name: Create Release on: - push: - branches: - - main - paths: - - "linkup-cli/Cargo.toml" + pull_request: + # push: + # branches: + # - main + # - oliver/test-release + # paths: + # - "linkup-cli/Cargo.toml" jobs: build: @@ -108,11 +110,15 @@ jobs: - name: Set SHA Outputs if: matrix.target == 'x86_64-apple-darwin' run: | - echo "::set-output name=mac_x86_sha::$(cat $CHECKSUM_PATH)" - echo "::set-output name=release_version::${{ env.RELEASE_VERSION }}}}" + echo "$(cat $CHECKSUM_PATH)" + echo ${{ env.RELEASE_VERSION }} + echo "mac_x86_sha=$(cat $CHECKSUM_PATH)" >> $GITHUB_OUTPUT + echo "release_version=${{ env.RELEASE_VERSION }}" >> $GITHUB_OUTPUT - name: Set SHA Outputs if: matrix.target == 'aarch64-apple-darwin' - run: echo "::set-output name=mac_arm_sha::$(cat $CHECKSUM_PATH)" + run: | + echo "$(cat $CHECKSUM_PATH)" + echo "mac_arm_sha=$(cat $CHECKSUM_PATH)" >> $GITHUB_OUTPUT - name: Release uses: softprops/action-gh-release@v1 @@ -127,7 +133,6 @@ jobs: update_homebrew_formula: needs: [build] runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' steps: - name: Checkout Homebrew Tap Repository run: git clone https://github.com/mentimeter/homebrew-mentimeter.git