Skip to content

Release new 0.5.1 version 🎺 #40

Release new 0.5.1 version 🎺

Release new 0.5.1 version 🎺 #40

name: "[TestPyPI] πŸ“¦ Publish Python 🐍 distribution"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-package:
uses: ./.github/workflows/workflow-build-package.yml
with:
python_version: "3.x"
poetry_version: "1.5.1"
generate_temp_version: ${{ github.event_name == 'pull_request' && true || false }}
publish-to-testpypi:
name: Publish Python 🐍 distribution πŸ“¦ to TestPyPI
needs:
- build-package
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/hapless
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution πŸ“¦ to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true