From a8e28197858162cf5c70466fadd49828d01d7211 Mon Sep 17 00:00:00 2001 From: Max Thomson Date: Thu, 12 Oct 2023 23:00:15 -0700 Subject: [PATCH] Revert initial commit to only allow running on master --- .github/workflows/release.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afb8806..7da1af7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Build & Release on: push: - branches: ["master", "max/fix-ci-releases"] + branches: ["master"] permissions: contents: write @@ -74,7 +74,7 @@ jobs: name: Release runs-on: ubuntu-22.04 needs: build - # if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' steps: - name: Checkout code uses: actions/checkout@v3 @@ -102,18 +102,18 @@ jobs: - name: Download binaries uses: actions/download-artifact@v3 - # if: env.SHOULD_RELEASE == 'yes' + if: env.SHOULD_RELEASE == 'yes' with: name: built-binaries path: bin - # - name: Publish release - # uses: softprops/action-gh-release@v1 - # if: env.SHOULD_RELEASE == 'yes' - # with: - # files: bin/* - # tag_name: ${{ env.RELEASE_VERSION }} - # fail_on_unmatched_files: true - # generate_release_notes: true - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish release + uses: softprops/action-gh-release@v1 + if: env.SHOULD_RELEASE == 'yes' + with: + files: bin/* + tag_name: ${{ env.RELEASE_VERSION }} + fail_on_unmatched_files: true + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}