|
@@ -18,8 +18,13 @@ name: Publish CLI
|
|
on:
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_dispatch:
|
|
inputs:
|
|
inputs:
|
|
|
|
+ post:
|
|
|
|
+ name: "Release Post"
|
|
|
|
+ required: true
|
|
|
|
+ description: Choose the release post to publish with. Must be a tag (eg v0.4.0)
|
|
|
|
+ type: string
|
|
channel:
|
|
channel:
|
|
- name: "Branch to publish"
|
|
|
|
|
|
+ name: "CLI Binary Version"
|
|
required: true
|
|
required: true
|
|
description: Choose the version number to publish with. Must be a tag (ie v0.4.0)
|
|
description: Choose the version number to publish with. Must be a tag (ie v0.4.0)
|
|
type: string
|
|
type: string
|
|
@@ -34,6 +39,7 @@ env:
|
|
# 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 }}
|
|
|
|
+ RELEASE_POST: ${{ github.event.inputs.post }}
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
release-cli:
|
|
release-cli:
|
|
@@ -88,10 +94,10 @@ jobs:
|
|
bin: dx
|
|
bin: dx
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
target: ${{ matrix.platform.target }}
|
|
target: ${{ matrix.platform.target }}
|
|
- archive: $bin-$target
|
|
|
|
|
|
+ archive: $bin-$target-v${{ 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 }}
|
|
|
|
|
|
+ ref: refs/tags/${{ env.RELEASE_POST }}
|
|
|
|
|
|
|
|
|
|
# todo: these things
|
|
# todo: these things
|