mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-11 08:08:45 -06:00
switch to toml-cli with cargo binstall
This commit is contained in:
9
.github/workflows/build.yaml
vendored
9
.github/workflows/build.yaml
vendored
@@ -62,10 +62,9 @@ jobs:
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
- id: get_version
|
||||
uses: mikefarah/yq@v4.44.3
|
||||
with:
|
||||
cmd: yq '.package.version' Cargo.toml
|
||||
- uses: cargo-bins/cargo-binstall@main
|
||||
|
||||
- run: cargo binstall toml-cli -y && echo "PACKAGE_VERSION=$(toml get ./Cargo.toml package.version --raw)" >> $GITHUB_ENV
|
||||
|
||||
- name: Package Artifacts
|
||||
shell: bash
|
||||
@@ -84,7 +83,7 @@ jobs:
|
||||
cp target/${{ matrix.target }}/release/spotify-player-quickauth $stage/
|
||||
cd $stage
|
||||
|
||||
RELEASE_VERSION=v${{ steps.get_version.outputs.result }}
|
||||
RELEASE_VERSION=v${{ env.PACKAGE_VERSION }}
|
||||
ARCHIVE="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}.tar.gz"
|
||||
tar czf "$ARCHIVE" ./spotify-player-quickauth
|
||||
echo "ASSET_PATH=$ASSET_PATH" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user