Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed May 29, 2024
1 parent 572f3d1 commit 9514cf5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,3 @@ jobs:
uses: python-semantic-release/python-semantic-release@31a691e771e103d6b9c70baafc75fb2cc9f48207 # v9.8.0
with:
github_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

- run: echo ${{ steps.semantic-release.outputs }}

- name: Publish package distributions to GitHub Releases
if: ${{ steps.semantic-release.outputs.released }} == 'true'
uses: python-semantic-release/upload-to-gh-release@main
with:
github_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ jobs:
with:
attest-build-provenance-github: 'true'

upload:
name: Upload package distributions to GitHub Releases
# do not run in forks
if: github.repository == 'afuetterer/services-test4'
runs-on: ubuntu-24.04
needs: build
steps:
- name: Download package built by build job
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: Packages
path: dist
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
with:
github_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

publish:
name: Publish to TestPyPI
# do not run in forks
Expand Down

0 comments on commit 9514cf5

Please sign in to comment.