From 80b79324c16926ab0a5e6c9c35152e6722a9751c Mon Sep 17 00:00:00 2001 From: Adam Curtis Date: Tue, 14 Feb 2023 14:13:16 -0500 Subject: [PATCH] update staging-release with new build params --- .github/workflows/staging-release.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/staging-release.yml b/.github/workflows/staging-release.yml index adc2ef50..a7439b3c 100644 --- a/.github/workflows/staging-release.yml +++ b/.github/workflows/staging-release.yml @@ -13,6 +13,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Get Cargo.toml package version + shell: bash + run: | + echo CARGO_PKG_VERSION=$(cargo pkgid | cut -d@ -f2 ) >> $GITHUB_ENV + - name: Create Draft Release id: release uses: ncipollo/release-action@v1 @@ -21,8 +26,6 @@ jobs: updateOnlyUnreleased: true # prevent modifying any non-draft non-prerelease removeArtifacts: true # deletes any existing artifacts when modifying draft: true - # need to set this false initially otherwise GH won't emit a prereleased event at the end - prerelease: false tag: staging name: Staging Build commit: ${{ github.sha }} # need commit because tag doesn't exist yet @@ -34,6 +37,7 @@ jobs: releaseId: ${{ steps.release.outputs.id }} releaseUploadUrl: ${{ steps.release.outputs.upload_url }} tagName: staging + cargoPackageVersion: ${{ env.CARGO_PKG_VERSION }} build-release: name: Build Release @@ -42,7 +46,10 @@ jobs: with: releaseId: ${{ needs.create-release.outputs.releaseId }} releaseUploadUrl: ${{ needs.create-release.outputs.releaseUploadUrl }} - releaseVersion: ${{ needs.create-release.outputs.tagName }} + releaseTag: ${{ needs.create-release.outputs.tagName }} + packageVersion: ${{ needs.create-release.outputs.cargoPackageVersion }} + debRevision: ${{ needs.create-release.outputs.tagName }} + rpmSnapshot: ${{ github.sha }} test-release: name: Test Draft Release