-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a
publish
CI workflow that deploys to PyPI on tags (#105)
- Loading branch information
1 parent
26d387d
commit 1a41383
Showing
3 changed files
with
39 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Publish to PyPI | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
publish: | ||
name: "Publish to PyPI" | ||
runs-on: "windows-2019" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Set up Python 3.8" | ||
uses: "actions/setup-python@v4" | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: "Install Build Requirements" | ||
run: "pip install -e .[build]" | ||
|
||
- name: "Build source distribution and wheel" | ||
run: "python -m build --sdist --wheel --outdir dist/ ." | ||
|
||
- name: "Publish to PyPI" | ||
uses: "pypa/gh-action-pypi-publish@release/v1" | ||
with: | ||
password: "${{ secrets.PYPI_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
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