diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 224a0da4..45a29bfb 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 ${{ needs.release.outputs.new_version }} dist/* publish-to-pypi: name: >-