Skip to content

Commit

Permalink
Merge pull request #351 from valentin-petzold/fix_cd
Browse files Browse the repository at this point in the history
new gh action to publish to pypi
  • Loading branch information
fu authored Feb 12, 2024
2 parents 93fe06f + 3486e66 commit ad24baa
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 ad24baa

Please sign in to comment.