Skip to content

Commit

Permalink
♿ fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Mips2648 committed May 13, 2024
1 parent ac92ed8 commit e87e4f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
outputs:
released: ${{ steps.semantic-release.outputs.released }}

publish:
needs: [release-on-success]
if: ${{ needs.release-on-success.outputs.released == 'true' }}
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450
released: ${{ steps.semantic-release.outputs.released }}
2 changes: 2 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ name: Upload Python Package
on:
release:
types: [published]
push:
paths: 'setup.py'

permissions:
contents: read
Expand Down

0 comments on commit e87e4f2

Please sign in to comment.