Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): Fix fedora release #277

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 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 All @@ -58,7 +60,7 @@ jobs:
fetch-depth: 0
- name: Get the new version using python-semantic-release
run: |
pip3 install python-semantic-release==8.0.8
pip3 install python-semantic-release==8.1.1
echo "NEW_VERSION="`semantic-release version --print` >> ${GITHUB_ENV}
- name: Update the mrack.spec changelog with initiator and basic message
run: |
Expand All @@ -83,9 +85,12 @@ jobs:
- name: Add specfile to commit
run: git add mrack.spec
- name: Python Semantic Release
uses: relekang/python-semantic-release@v8.0.8
uses: python-semantic-release/python-semantic-release@v8.1.1
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