-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PyPI publishing to release workflow (#21)
- Loading branch information
Showing
3 changed files
with
36 additions
and
54 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,18 +1,38 @@ | ||
name: Create Release from the version tag | ||
name: Create and Publish release from the version tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository. | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create Release. | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout repository. | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create Release. | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
|
||
- name: Setup Python. | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Setup Poetry. | ||
run: curl -sSL https://install.python-poetry.org | python - -y | ||
|
||
- name: Add Poetry to PATH. | ||
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH | ||
|
||
- name: Build package. | ||
run: poetry build | ||
|
||
- name: Publish a Python distribution to PyPI. | ||
uses: pypa/gh-action-pypi-publish@release/v1 |