Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic publish on pypi when new tag is made #479

Open
BDonnot opened this issue Jul 6, 2023 · 2 comments
Open

Automatic publish on pypi when new tag is made #479

BDonnot opened this issue Jul 6, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@BDonnot
Copy link
Collaborator

BDonnot commented Jul 6, 2023

Set up the appropriate github action to publish the package automatically on pypi on new version

@BDonnot BDonnot added the help wanted Extra attention is needed label Jul 6, 2023
@ML-IEE
Copy link

ML-IEE commented Jul 27, 2023

Hey @BDonnot ,

we used something similar on our agent:

build:
    needs:  # If you need some previous stages
    runs-on: ubuntu-latest
    environment: ${{ vars.ENVIRONMENT_STAGE }}
    steps:
      - uses: actions/checkout@v3
      - name: Install for safety again all requirements
        run: |
          pip install -r requirements-dev.txt
          pip install build
      - name: Build Package
        run: python -m build
      - name: Publish package
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          user: __token__
          password: ${{ secrets.PYPI_API_TOKEN }} # You need to set a token here

You can check out our actions here: https://github.com/FraunhoferIEE/curriculumagent/tree/master/.github/workflows

@BDonnot
Copy link
Collaborator Author

BDonnot commented Jul 27, 2023

Hello :-)

Thanks ! We also have similar things for some other packages, just need the time to add it (which I don't have at the moment :-( )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants