Skip to content

Add github action to automatically publish package to pypi on tag#62

Merged
Dominic-DallOsto merged 11 commits intomasterfrom
github-actions-publish-pypi
Jul 4, 2025
Merged

Add github action to automatically publish package to pypi on tag#62
Dominic-DallOsto merged 11 commits intomasterfrom
github-actions-publish-pypi

Conversation

@Dominic-DallOsto
Copy link
Contributor

@Dominic-DallOsto Dominic-DallOsto commented Jun 13, 2025

Copied from here

I think I needed to go here and create an environment called pypi

@jasper-tms
Copy link
Member

I just got automatic publishing set up for npimage, here's my configuration: https://github.com/jasper-tms/npimage/blob/main/.github/workflows/publish.yml

I didn't need to create an environment, only add a repository secret via this page: https://github.com/NeLy-EPFL/DeepFly3D/settings/secrets/actions

I added the pypi token that Sibo gave me which works only for the nely-df3d pypi project as a token named DF3D_PYPI_API_TOKEN, so you can use

      - name: Publish to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          password: ${{ secrets.DF3D_PYPI_API_TOKEN }}

in your yml and it should work. Want to give it a try?

Also note that I configured npimage to run the release action any time there's an edit to pyproject.toml, which is slightly different than what I think you had set up (to trigger any time we mark a new release?)

@Dominic-DallOsto Dominic-DallOsto merged commit c218a7d into master Jul 4, 2025
5 checks passed
@Dominic-DallOsto Dominic-DallOsto deleted the github-actions-publish-pypi branch July 4, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants