From bc6d553f05e1572553424b97ce19614ced51adf7 Mon Sep 17 00:00:00 2001 From: Himanshu Bisht <42200799+hbisht-airstack@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:04:18 +0530 Subject: [PATCH] Feat/sdk deployment (#10) * testing sdk deployment * typo fix * pip install twine * created pypirc file * Update .pypirc * Update publish-to-test-pypi.yml * Update publish-to-test-pypi.yml * Update publish-to-test-pypi.yml * Update publish-to-test-pypi.yml * Update setup.cfg * Update publish-to-test-pypi.yml * fixed the python sdk publish workflow --- .github/workflows/prod-publish-to-pypi.yml | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/prod-publish-to-pypi.yml diff --git a/.github/workflows/prod-publish-to-pypi.yml b/.github/workflows/prod-publish-to-pypi.yml new file mode 100644 index 0000000..ff2129d --- /dev/null +++ b/.github/workflows/prod-publish-to-pypi.yml @@ -0,0 +1,35 @@ +name: Publish Python 🐍 distributions 📦 to PyPI + +on: workflow_dispatch + +permissions: + contents: read + id-token: write +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install pypa/build + run: >- + python3 -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python3 -m + build + --sdist + --wheel + --outdir dist/ + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}