From 0a031bc44b8a69c19486ab47c4de83835e9fa3b6 Mon Sep 17 00:00:00 2001 From: Jayasudha Jayakumaran Date: Wed, 18 Sep 2024 17:16:50 -0700 Subject: [PATCH] fix content --- .github/workflows/workflow.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e69de29..3696966 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -0,0 +1,30 @@ +name: Release to PyPI + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/cdp-sdk + permissions: + id-token: write + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}