Skip to content

Commit

Permalink
Merge pull request #12 from sanders41/publish-action
Browse files Browse the repository at this point in the history
Fix publish action
  • Loading branch information
sanders41 authored Oct 28, 2023
2 parents 99abb44 + 413d842 commit c5974cd
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ name: PyPi Publish
on:
release:
types:
- published
- published
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "poetry"
- name: Install Dependencies
run: |
poetry install
- name: Add pypi token to Poetry
run: |
poetry config pypi-token.pypi {{ "${{ secrets.PYPI_API_KEY }}" }}
- name: Publish package
run: poetry publish --build
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "poetry"
- name: Install Dependencies
run: |
poetry install
- name: Add pypi token to Poetry
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_KEY }}
- name: Publish package
run: poetry publish --build

0 comments on commit c5974cd

Please sign in to comment.