Skip to content

Commit

Permalink
transfer released value between steps
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jan 8, 2024
1 parent 0e43141 commit eae00f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ jobs:
- check_if_should_release

runs-on: ubuntu-latest
outputs:
released: ${{ steps.release.outputs.released }}

steps:
- uses: actions/checkout@v4
Expand All @@ -119,6 +121,7 @@ jobs:
- name: Release
uses: python-semantic-release/python-semantic-release@v8.5.0
id: release

with:
github_token: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -148,10 +151,10 @@ jobs:

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.build_release.outputs.released == 'true'
if: needs.build_release.outputs.released == 'true'

- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@1eeda76de33f20e9341a93b0e697c79773c6914c
if: steps.build_release.outputs.released == 'true'
if: needs.build_release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit eae00f4

Please sign in to comment.