From d9575a467813b303d01dc6a98c63777f006273a2 Mon Sep 17 00:00:00 2001 From: jyejare Date: Fri, 20 Oct 2023 15:22:02 +0530 Subject: [PATCH] Candore PyPi release GHA --- .github/release_to_pypi.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/release_to_pypi.yml diff --git a/.github/release_to_pypi.yml b/.github/release_to_pypi.yml new file mode 100644 index 0000000..b00de9e --- /dev/null +++ b/.github/release_to_pypi.yml @@ -0,0 +1,34 @@ +# CI stages to execute against Pull Requests +name: Release to PyPi + +on: + push: + tags: + - '*' + +jobs: + release_to_pypi: + name: Release to PyPi + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set Up Python3 + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Setup and Build + run: | + pip install -U pip wheel twine hatch + hatch build + twine check dist/* + + - name: Release to PyPi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.CANDORE_PYPI_TOKEN }} + skip_existing: true