Skip to content

Commit

Permalink
chore:update publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed May 10, 2024
1 parent ef44b53 commit e7ac86f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,28 @@ on:
types: [published]

jobs:
deploy:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache-dependency-path: poetry.lock

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package

- name: Publish package to pypi
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
print_hash: true

0 comments on commit e7ac86f

Please sign in to comment.