-
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 #5 from tzoiker/ci/publish
Add publish job
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup python3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Fetch tags | ||
run: git fetch --unshallow --tags || true | ||
|
||
- name: Install poetry | ||
run: python -m pip install poetry | ||
|
||
- name: Install poem-plugins | ||
run: poetry self add poem-plugins | ||
|
||
- name: Install package | ||
run: poetry install | ||
|
||
- name: Mint token | ||
id: mint | ||
uses: tschm/[email protected] | ||
|
||
- name: Publish to PyPI | ||
run: poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token }}' |
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