fix: latest correct version. add debugging printouts #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
- release | |
- 'fix/github-action-pkg-release' | |
# - 'feature/*' | |
# - 'bugfix/*' | |
paths-ignore: | |
- '**.md' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
concurrency: release | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- name: 📥 Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 🐍 Setup Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Configure Poetry | |
run: | | |
poetry config virtualenvs.create false | |
poetry config virtualenvs.in-project false | |
- name: Install dependencies with Poetry | |
run: poetry install --no-root | |
- name: Python Semantic Release | |
id: release | |
uses: python-semantic-release/python-semantic-release@v8.3.0 | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
- name: Debug Semantic Release Output | |
if: always() | |
run: | | |
echo "Released: ${{ steps.release.outputs.released }}" | |
echo "New version: ${{ steps.release.outputs.new_version }}" | |
echo "Version change: ${{ steps.release.outputs.version_change }}" | |
- name: Build distributions with Poetry | |
run: poetry build | |
if: steps.release.outputs.released == 'true' | |
- name: 🚀 Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
if: steps.release.outputs.released == 'true' | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN }} | |
- name: 🚀 Publish to GitHub Releases | |
uses: python-semantic-release/upload-to-gh-release@main | |
if: steps.release.outputs.released == 'true' | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} |