Skip to content

Commit

Permalink
Revert initial commit to only allow running on master
Browse files Browse the repository at this point in the history
  • Loading branch information
MNThomson committed Oct 13, 2023
1 parent b77fb43 commit a8e2819
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build & Release

on:
push:
branches: ["master", "max/fix-ci-releases"]
branches: ["master"]

permissions:
contents: write
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit a8e2819

Please sign in to comment.