mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-06 13:16:33 -06:00
get version with yq
This commit is contained in:
7
.github/workflows/build.yaml
vendored
7
.github/workflows/build.yaml
vendored
@@ -62,6 +62,11 @@ jobs:
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
- id: get_version
|
||||
uses: mikefarah/yq@v4.44.3
|
||||
with:
|
||||
cmd: yq '.package.version' Cargo.toml
|
||||
|
||||
- name: Package Artifacts
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -78,7 +83,7 @@ jobs:
|
||||
|
||||
cp target/${{ matrix.target }}/release/spotify-player-quickauth $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_PATH="$src/$ASSET_NAME"
|
||||
echo "ASSET_PATH=$ASSET_PATH" >> $GITHUB_ENV
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "spotify-player-quickauth"
|
||||
version = "0.1.0"
|
||||
version = "0.0.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
||||
Reference in New Issue
Block a user