Skip to content

Commit

Permalink
ci: Fix publish job (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
pall-j authored Dec 19, 2024
1 parent c29e87b commit 616bf40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/dynamic_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ jobs:
publish:
runs-on: ubuntu-22.04
needs: tests
if: github.ref == 'refs/heads/main'
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -93,7 +95,7 @@ jobs:
echo "old version: $old_version"
echo "new version: $new_version"
echo "new tag: $new_tag"
- name: Release and publish
- name: Release and build
if: ${{ env.OLD_VERSION != env.NEW_VERSION }}
env:
GH_TOKEN: ${{ github.token }}
Expand Down Expand Up @@ -124,4 +126,5 @@ jobs:
poetry version ${{ env.NEW_VERSION }}
poetry build
- name: Publish
if: ${{ env.OLD_VERSION != env.NEW_VERSION }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 616bf40

Please # to comment.