-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from tzoiker/ci/fix-publish
Fix publish workflow
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }}' |