-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github action for releasing sdist on pypi (#9)
* Fix lint * Add pipeline to release sdist on pypi * Missing C files (issue #8) * Update CI job configuration * flake8 configuration
- Loading branch information
Showing
6 changed files
with
43 additions
and
16 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
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
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,32 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: | ||
# Note: editing the prerelease then marking as release does not trigger | ||
# this pipeline | ||
# - prereleased | ||
- released | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release-pypi-sdist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build sdist | ||
run: | | ||
python3 setup.py sdist | ||
- name: List available sdist | ||
run: | | ||
ls ${{ github.workspace }}/dist | ||
- name: Publish to PyPI | ||
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
#password: ${{ secrets.PYPI_TEST_API_TOKEN }} | ||
#repository_url: https://test.pypi.org/legacy/ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
packages-dir: ${{ github.workspace }}/dist | ||
verbose: true |
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