-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
025f9c6
commit 2ce09bc
Showing
1 changed file
with
13 additions
and
28 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 |
---|---|---|
|
@@ -9,35 +9,20 @@ on: | |
types: [released] | ||
|
||
jobs: | ||
deploy: | ||
pypi-publish: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: release | ||
|
||
environment: | ||
name: release | ||
url: https://pypi.org/p/svd2json | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install twine | ||
run: | | ||
pip install twine build | ||
- name: Mint token | ||
id: mint | ||
uses: tschm/[email protected] | ||
|
||
- name: Build n check python package | ||
run: | | ||
python -m build | ||
twine check dist/*.whl | ||
- name: Publish package to registry | ||
run: | | ||
twine upload --disable-progress-bar -u __token__ -p '${{ steps.mint.outputs.api-token }}' dist | ||
# retrieve your distributions here | ||
|
||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
verify-metadata: true | ||
skip-existing: true | ||
print-hash: true |