Skip to content

Commit

Permalink
Merge pull request stacks-network#4590 from stacks-network/fix/next-g…
Browse files Browse the repository at this point in the history
…ithub-release

create release only requires a tag
  • Loading branch information
wileyj authored Mar 25, 2024
2 parents e6f698d + e1eb3a0 commit aaab6bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,9 @@ jobs:
##
## Runs when the following is true:
## - tag is provided
## - workflow is building default branch (master)
create-release:
if: |
inputs.tag != '' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
inputs.tag != ''
name: Create Release
needs:
- rustfmt
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/create-source-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ concurrency:
jobs:
## Runs when the following is true:
## - tag is provided
## - workflow is building default branch (master)
artifact:
if: |
inputs.tag != '' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
inputs.tag != ''
name: Build Binaries
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -60,4 +58,3 @@ jobs:
arch: ${{ matrix.arch }}
cpu: ${{ matrix.cpu }}
tag: ${{ inputs.tag }}

10 changes: 3 additions & 7 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ jobs:
##
## Runs when the following is true:
## - tag is provided
## - workflow is building default branch (master)
build-binaries:
if: |
inputs.tag != '' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
inputs.tag != ''
name: Build Binaries
uses: ./.github/workflows/create-source-binary.yml
with:
Expand All @@ -41,8 +39,7 @@ jobs:
## - workflow is building default branch (master)
create-release:
if: |
inputs.tag != '' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
inputs.tag != ''
name: Create Release
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -84,8 +81,7 @@ jobs:
## - workflow is building default branch (master)
docker-image:
if: |
inputs.tag != '' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
inputs.tag != ''
name: Docker Image (Binary)
uses: ./.github/workflows/image-build-binary.yml
needs:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/image-build-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
## - workflow is building default branch (master)
image:
if: |
inputs.tag != '' &&
github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
inputs.tag != ''
name: Build Image
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit aaab6bc

Please sign in to comment.