Skip to content

Commit

Permalink
Merge pull request #6 from tzoiker/ci/fix-publish
Browse files Browse the repository at this point in the history
Fix publish workflow
  • Loading branch information
tzoiker authored Nov 2, 2023
2 parents ddffb14 + ac196b3 commit 3b6e6d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python-version: '3.11'

- name: Fetch tags
run: git fetch --unshallow --tags || true
run: git fetch --unshallow --tags --force || true

- name: Install poetry
run: python -m pip install poetry
Expand All @@ -30,9 +30,12 @@ jobs:
- name: Install package
run: poetry install

- name: Build package
run: poetry build

- name: Mint token
id: mint
uses: tschm/[email protected]

- name: Publish to PyPI
run: poetry publish --build -u __token__ -p '${{ steps.mint.outputs.api-token }}'
run: poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token }}'

0 comments on commit 3b6e6d0

Please sign in to comment.