mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-06 05:16:37 -06:00
get version with yq
This commit is contained in:
7
.github/workflows/build.yaml
vendored
7
.github/workflows/build.yaml
vendored
@@ -61,6 +61,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
|
|
||||||
|
- id: get_version
|
||||||
|
uses: mikefarah/yq@v4.44.3
|
||||||
|
with:
|
||||||
|
cmd: yq '.package.version' Cargo.toml
|
||||||
|
|
||||||
- name: Package Artifacts
|
- name: Package Artifacts
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -78,7 +83,7 @@ jobs:
|
|||||||
|
|
||||||
cp target/${{ matrix.target }}/release/spotify-player-quickauth $stage/
|
cp target/${{ matrix.target }}/release/spotify-player-quickauth $stage/
|
||||||
cd $stage
|
cd $stage
|
||||||
RELEASE_VERSION=${GITHUB_REF#refs/tags/}
|
RELEASE_VERSION=v${{ steps.get_version.outputs.result }}
|
||||||
ASSET_NAME="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}.tar.gz"
|
ASSET_NAME="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}.tar.gz"
|
||||||
ASSET_PATH="$src/$ASSET_NAME"
|
ASSET_PATH="$src/$ASSET_NAME"
|
||||||
echo "ASSET_PATH=$ASSET_PATH" >> $GITHUB_ENV
|
echo "ASSET_PATH=$ASSET_PATH" >> $GITHUB_ENV
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "spotify-player-quickauth"
|
name = "spotify-player-quickauth"
|
||||||
version = "0.1.0"
|
version = "0.0.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
Reference in New Issue
Block a user