Binstalls not working, need archive suffix
This commit is contained in:
2 files changed
+16
-5
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "dioxus-cli"
|
name = "dioxus-cli"
|
||||||
version = { workspace = true }
|
version = "0.5.3"
|
||||||
|
# version = { workspace = true }
|
||||||
authors = ["Jonathan Kelley"]
|
authors = ["Jonathan Kelley"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "CLI tool for developing, testing, and publishing Dioxus apps"
|
description = "CLI tool for developing, testing, and publishing Dioxus apps"
|
||||||
@@ -115,7 +116,11 @@ name = "dx"
|
|||||||
tempfile = "3.3"
|
tempfile = "3.3"
|
||||||
|
|
||||||
[package.metadata.binstall]
|
[package.metadata.binstall]
|
||||||
pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }"
|
# temporarily, we're going to use the 0.5.0 download page for all binaries
|
||||||
|
pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }-v{ version }{ archive-suffix }"
|
||||||
|
|
||||||
|
# pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }{ archive-suffix }"
|
||||||
|
pkg-fmt = "tgz"
|
||||||
|
|
||||||
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
|
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
|
||||||
pkg-fmt = "zip"
|
pkg-fmt = "zip"
|
||||||
Reference in new issue
Block a user