Skip to content

Commit

Permalink
ci: fix publish_to_pypi job
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sanz committed Jan 24, 2025
1 parent 4e1d1fb commit 0884e1a
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,29 @@ on:
tags:
- "v*.*.*"


permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
token: "${{ secrets.GITHUB_TOKEN }}"

push_to_pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish python package
uses: JRubics/poetry-publish@v1.13
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
ignore_dev_requirements: "yes"
- uses: actions/checkout@v3
- name: Publish python package
uses: JRubics/poetry-publish@v2.1
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
poetry_install_options: "--without dev"

push_to_docker_hub:
needs: push_to_pypi
Expand Down

0 comments on commit 0884e1a

Please sign in to comment.