From 84fc1a93aa5c3b907e70d6f684a4541322b819dd Mon Sep 17 00:00:00 2001 From: klemengit Date: Tue, 14 May 2024 08:17:25 +0200 Subject: [PATCH] publish to pypi GV workflow added --- .../workflows/release-and-publish-to-pypi.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release-and-publish-to-pypi.yml diff --git a/.github/workflows/release-and-publish-to-pypi.yml b/.github/workflows/release-and-publish-to-pypi.yml new file mode 100644 index 0000000..711fdda --- /dev/null +++ b/.github/workflows/release-and-publish-to-pypi.yml @@ -0,0 +1,28 @@ +name: Release and Publish to PyPI +on: + push: + tags: + - 'v*' +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.11' + + - name: Install dependencies + run: pip install setuptools wheel twine build + + - name: Build package + run: python -m build + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@v1.4.2 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file