Skip to content

Commit

Permalink
update staging-release with new build params
Browse files Browse the repository at this point in the history
  • Loading branch information
erratic-pattern committed Feb 14, 2023
1 parent d2875af commit 80b7932
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/staging-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 80b7932

Please sign in to comment.