Grid2Op
Grid2Op copied to clipboard
Automatic publish on pypi when new tag is made
Set up the appropriate github action to publish the package automatically on pypi on new version
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
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 :-( )