Skip to content

Commit

Permalink
chore(release): Upload distribution package to release assets
Browse files Browse the repository at this point in the history
To fix fedora release, broken in #272

Fixes #273

Signed-off-by: David Pascual <[email protected]>
  • Loading branch information
dav-pascual committed Oct 16, 2023
1 parent 8e30c75 commit 6d6cdc6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -86,6 +88,9 @@ jobs:
uses: relekang/[email protected]
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
Expand Down Expand Up @@ -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: >-
Expand Down

0 comments on commit 6d6cdc6

Please sign in to comment.