Skip to content

Commit

Permalink
Updated pypi-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nuuuwan committed Apr 3, 2024
1 parent be5596b commit 5c6c582
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/pypi-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Deploy to PyPi
name: pypi-deploy

on:
push:
tags:
- '*'

jobs:
deploy:
pypi-deploy:
runs-on: ubuntu-latest

strategy:
Expand All @@ -20,16 +20,18 @@ jobs:
with:
python-version: '3.10'

- name: Test
uses: nuuuwan/python-repo-test@v1
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install build
- name: Build package
run: |
export PYTHONPATH="$PYTHONPATH:./src"
python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 5c6c582

Please sign in to comment.