-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hi team, I was trying to update the versions of Django and few other dependencies of the application, however, since Python Semantic Release v8 onwards they have dropped support for publishing to PyPi and Github Release. See link
Since we were using relekang/python-semantic-release@master it resolved to latest version of Python Semantic Release.
Hence the release functionality of our pipeline stopped working.
We need to upgrade python-semantic-release/python-semantic-release@ to latest version and they have slight new changes to the yaml configuration. See here
Sample:
release:
name: Release
needs: [lint]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# This action uses Python Semantic Release v8
- name: Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@master
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
# See https://github.com/actions/runner/issues/1173
if: steps.release.outputs.released == 'true'
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/[email protected]
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
But we need to set/update the correct secrets and permissions in GITHUB for this repo. Can you guys help with that?
@SquakR @SaltRedginald @Luferov
Please check the last github action logs here