Skip to content

Commit

Permalink
add: release.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Audiosutras committed Nov 16, 2023
1 parent 0ccfd3f commit 0114629
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to Test PyPI
name: Publish to Test.PyPI
on:
push:
# when a new tag has been pushed to repo
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish to PyPI
on:
release:
types: [published]

jobs:
package_release:
name: Publish Package to PyPI
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Python 3.11
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Pipx & Poetry
run: |
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install poetry
- name: Configure PYPI as source to publish to
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_PASSWORD }}
- name: Publish package
run: poetry publish --build

0 comments on commit 0114629

Please sign in to comment.