From 6d6cdc64c4410f99ba1bea4482ead1264b75247c Mon Sep 17 00:00:00 2001 From: David Pascual Date: Wed, 11 Oct 2023 09:31:58 +0200 Subject: [PATCH] chore(release): Upload distribution package to release assets To fix fedora release, broken in https://github.com/neoave/mrack/pull/272 Fixes https://github.com/neoave/mrack/issues/273 Signed-off-by: David Pascual --- .github/workflows/test-and-release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 224a0da4..398b2659 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -35,6 +35,8 @@ jobs: runs-on: ubuntu-latest needs: [pre-commit, test] if: github.repository == 'neoave/mrack' + outputs: + new_version: ${{ steps.set_version.outputs.new_version }} steps: - uses: actions/setup-python@v4 with: @@ -86,6 +88,9 @@ jobs: uses: relekang/python-semantic-release@v8.0.8 with: github_token: ${{ secrets.TIBORIS_GH_TOKEN }} + - name: Set NEW_VERSION as output + id: set_version + run: echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT" copr-build: name: Copr 📦 build for mrack @@ -122,6 +127,10 @@ jobs: with: name: python-package-distributions path: dist/ + - name: Upload Release Asset + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release upload v${{ needs.release.outputs.new_version }} dist/* publish-to-pypi: name: >-