Files
python-sagemcom-api-master/.github/workflows/publish-pypi-test.yml
dependabot[bot] d4470615ed Bump Gr1N/setup-poetry from 8 to 9
Bumps [Gr1N/setup-poetry](https://github.com/gr1n/setup-poetry) from 8 to 9.
- [Release notes](https://github.com/gr1n/setup-poetry/releases)
- [Commits](https://github.com/gr1n/setup-poetry/compare/v8...v9)

---
updated-dependencies:
- dependency-name: Gr1N/setup-poetry
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-19 09:02:12 +00:00

31 lines
809 B
YAML

# yamllint disable-file
# This workflows will upload a Python Package
# using Poetry when a release is created
name: Publish Python Package (test)
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Set up Poetry
uses: Gr1N/setup-poetry@v9
- name: Build and publish to PyPi
env:
POETRY_PYPI_TOKEN_TESTPYPI: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
poetry config http-basic.testpypi ${{ secrets.TEST_PYPI_API_TOKEN }} ""
poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi