AWS Advanced Python Wrapper - v1.4.0 #6
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: 'Release to PyPI' | |
| on: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| python-wrapper-release: | |
| name: 'Build And Release To PyPI' | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: release | |
| url: https://pypi.org/project/aws-advanced-python-wrapper/ | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: 'Set up Python 3.11' | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install poetry | |
| shell: bash | |
| run: | | |
| pipx install poetry==1.8.2 | |
| poetry config virtualenvs.prefer-active-python true | |
| - name: 'Install dependencies' | |
| run: poetry install | |
| - name: 'Create a Package' | |
| run: poetry build | |
| - name: 'Upload to PyPI' | |
| uses: pypa/gh-action-pypi-publish@release/v1 |