Skip to content

Commit

Permalink
new gh action to publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
vgp57214_gsk committed Feb 12, 2024
1 parent 93fe06f commit 3486e66
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
uses: pypa/gh-action-pypi-publish@release/v1
with:
pypi_token: ${{ secrets.PROD_PYPI}}
plugins: "poetry-dynamic-versioning[plugin]"
password: ${{ secrets.PROD_PYPI}}

0 comments on commit 3486e66

Please sign in to comment.