This commit is contained in:
Jonathan Kelley committed 2024-03-26 22:10:51 -07:00
1 parent 877be9092f
commit 420a9290ff
1 file changed
+7 -5
+7 -5
View File
@@ -21,7 +21,7 @@ on:
channel: channel:
name: "Branch to publish" name: "Branch to publish"
required: true required: true
description: Choose the version number to publish with description: Choose the version number to publish with. Must be a tag (ie v0.4.0)
type: string type: string
env: env:
@@ -31,9 +31,9 @@ env:
# this means the version in git will always be one minor bump ahead of the actual release - basically meaning once # this means the version in git will always be one minor bump ahead of the actual release - basically meaning once
# we release a version, it's fair game to merge breaking changes to main since all semver-compatible changes will be # we release a version, it's fair game to merge breaking changes to main since all semver-compatible changes will be
# backported automatically # backported automatically
SEMVER: ${{ github.event.inputs.channel == 'main' && 'prerelease' || 'patch' }} # SEMVER: ${{ github.event.inputs.channel == 'main' && 'prerelease' || 'patch' }}
PRERELEASE_TAG: ${{ github.event.inputs.channel == 'main' && '-pre' || '' }} # PRERELEASE_TAG: ${{ github.event.inputs.channel == 'main' && '-pre' || '' }}
RELEASE_TAG: ${{ github.event.inputs.channel }} RELEASE_TAG: ${{ github.event.inputs.channel }}
jobs: jobs:
release-cli: release-cli:
@@ -84,9 +84,11 @@ jobs:
bin: dx bin: dx
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
archive: dx-${{ matrix.platform.target }}${{ env.PRERELEASE_TAG }} archive: dx-${{ matrix.platform.target }}${{ env.RELEASE_TAG }}
checksum: sha256 checksum: sha256
manifest_path: packages/cli/Cargo.toml manifest_path: packages/cli/Cargo.toml
ref: refs/tags/${{ env.RELEASE_TAG }}
# todo: these things # todo: these things
# Run benchmarks, which we'll use to display on the website # Run benchmarks, which we'll use to display on the website