Grid2Op icon indicating copy to clipboard operation
Grid2Op copied to clipboard

Automatic publish on pypi when new tag is made

Open BDonnot opened this issue 1 year ago • 2 comments

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

BDonnot avatar Jul 06 '23 07:07 BDonnot

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

ML-IEE avatar Jul 27 '23 09:07 ML-IEE

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 :-( )

BDonnot avatar Jul 27 '23 09:07 BDonnot