-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added new workflow for publishing releases Signed-off-by: Courtney Caldwell <courtneyccaldwell@gmail.com> * Adding any updates needed Signed-off-by: Courtney Caldwell <courtneyccaldwell@gmail.com> * Updated readme Signed-off-by: Courtney Caldwell <courtneyccaldwell@gmail.com> --------- Signed-off-by: Courtney Caldwell <courtneyccaldwell@gmail.com>
- Loading branch information
1 parent
04722b8
commit d9b7bc5
Showing
5 changed files
with
35 additions
and
29 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,28 @@ | ||
name: Publish ${package_name} to PyPI / GitHub | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish to PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install | ||
- name: Setup Key | ||
run: | | ||
poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}" | ||
- name: Publish to PyPI | ||
run: | | ||
poetry publish --build | ||
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
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.