Skip to content

Commit

Permalink
Merge pull request #63 from e-alizadeh:fix/semantic-release
Browse files Browse the repository at this point in the history
fix: use more distinct step id for GHA step
  • Loading branch information
e-alizadeh authored Nov 7, 2023
2 parents e334982 + 5d30a25 commit 9602a0f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- master
- release
paths-ignore:
- '**.md'
jobs:
Expand Down Expand Up @@ -39,31 +38,31 @@ jobs:
run: poetry install --no-root

- name: 🐍 Python Semantic Release
id: release
id: srelease
uses: python-semantic-release/python-semantic-release@v8.3.0
with:
github_token: ${{ secrets.GH_TOKEN }}

- name: 🔍 Print Semantic Release Output (for Debugging purposes)
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 }}"
echo "Released: ${{ steps.srelease.outputs.released }}"
echo "New version: ${{ steps.srelease.outputs.new_version }}"
echo "Version change: ${{ steps.srelease.outputs.version_change }}"
- name: 🛠️ Build distributions with Poetry
run: poetry build
if: steps.release.outputs.released == 'true'
if: steps.srelease.outputs.released == 'true'

- name: 🚀 Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
if: steps.srelease.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'
if: steps.srelease.outputs.released == 'true'
with:
github_token: ${{ secrets.GH_TOKEN }}

0 comments on commit 9602a0f

Please sign in to comment.