Skip to content

Commit

Permalink
fix: publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HiIAmTzeKean committed Nov 14, 2024
1 parent c253473 commit 879ec32
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,14 @@ jobs:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
steps:
- name: Checkout Repository # You must checkout your repository first.
uses: actions/checkout@v3

- name: Publish Package
uses: celsiusnarhwal/poetry-publish@v2
with:
python-version: 3.12
poetry-version: 1.3.1
token: ${{ secrets.PYPI_TOKEN }}
build: true

0 comments on commit 879ec32

Please sign in to comment.