diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63469faf..242aea60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,6 +46,11 @@ jobs: toolchain: nightly - id: tag uses: dawidd6/action-get-tag@v1 + - id: version + shell: bash + run: | + VERSION=$(cargo metadata --format-version 1 | jq '.packages[] | select (.name == "synth") | .version' -r) + echo "::set-output name=version::${VERSION}" - run: cargo +nightly build --release --features telemetry - id: install-wix run: nuget install WiX -Version 3.11.2 @@ -61,6 +66,12 @@ jobs: run: | cd synth cargo wix --nocapture + - name: Rename output + shell: bash + run: | + cd synth + mv ./target/wix/synth-${{ steps.version.outputs.version }}-x86_64.msi \ + ./target/wix/synth-${{ steps.tag.outputs.tag }}-x86_64.msi - uses: actions/upload-artifact@v2 with: name: synth-${{ steps.tag.outputs.tag }}-windows-msi-x86_64 diff --git a/default.nix b/default.nix index 47709493..65a0e1b4 100644 --- a/default.nix +++ b/default.nix @@ -13,7 +13,7 @@ , release ? true }: let - version = "0.5.5"; + version = "0.5.6"; darwinBuildInputs = stdenv.lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ libiconv