Skip to content

Commit

Permalink
feat: handle any semver prerelease format
Browse files Browse the repository at this point in the history
  • Loading branch information
EliSauder committed Nov 1, 2024
1 parent 7f081f9 commit 1f726e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publish-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
type: string
default: ""
description: The version tag to publish
is-prerelease:
required: false
type: boolean
default: false
description: Whether or not the publish is a prerelease
github-artifact-name:
required: true
type: string
Expand Down Expand Up @@ -103,4 +108,4 @@ jobs:
draft: true
generateReleaseNotes: true
tag: ${{ inputs.tag }}
prerelease: ${{ contains(inputs.tag, '-beta') || contains(inputs.tag, '-alpha') || contains(inputs.tag, '-rc') }}
prerelease: ${{ inputs.is-prerelease }}
3 changes: 2 additions & 1 deletion .github/workflows/publish-microzig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ jobs:
# Publish microzig
publish-microzig:
uses: ./.github/workflows/publish-base.yml
needs: alter-microzig-artifact
needs: build-microzig
concurrency:
group: publish
cancel-in-progress: false
with:
tag: ${{ github.ref_name }}
github-artifact-name: microzig-build
source-path: /
is-prerelease: ${{ needs.build-microzig.outputs.prerelease != "" }}
secrets:
target-path: ${{ secrets.DEPLOY_ROOT_DATA_PATH }}
ssh-key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
Expand Down

0 comments on commit 1f726e8

Please sign in to comment.