v0.2.0 #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: deploy to pypi | |
| on: | |
| release: | |
| types: [created] | |
| permissions: | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/project/hier-config-cli/ | |
| permissions: | |
| id-token: write # Required for trusted publishing | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| version: 1.8.2 | |
| - name: Build package | |
| run: | | |
| poetry build | |
| - name: Publish to PyPI | |
| env: | |
| TWINE_API_KEY: ${{ secrets.TWINE_API_KEY }} | |
| run: | | |
| poetry config pypi-token.pypi $TWINE_API_KEY | |
| poetry publish --build |