From 749e4da290667880ce5e2aee6e6f808633097180 Mon Sep 17 00:00:00 2001 From: saieshwarm Date: Tue, 23 Apr 2024 20:56:18 +0000 Subject: [PATCH 1/2] Adding Workflow for PyPi lib --- .github/workflows/pypi-lib-release.yaml | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pypi-lib-release.yaml diff --git a/.github/workflows/pypi-lib-release.yaml b/.github/workflows/pypi-lib-release.yaml new file mode 100644 index 0000000..795f861 --- /dev/null +++ b/.github/workflows/pypi-lib-release.yaml @@ -0,0 +1,27 @@ +# This workflow will release project to PyPI +name: CloudFormation CLI Python Plugin Release + +on: + release: + types: [ published ] + +jobs: + build: + if: endsWith(github.ref, '-lib') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: 3.11 + - name: Install dependencies + run: | + pip install --upgrade wheel twine + - name: Package project + run: | + python setup.py sdist bdist_wheel + - name: Publish distribution 📦 to PyPI (If triggered from release) + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.PYPI_API_KEY_CLOUDFORMATION_CLI_PYTHON_LIB }} From 982b603c44b52c174dff33837d2a8dae6a03f757 Mon Sep 17 00:00:00 2001 From: saieshwarm Date: Tue, 23 Apr 2024 20:56:18 +0000 Subject: [PATCH 2/2] Adding Workflow for PyPi lib --- .github/workflows/pypi-lib-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-lib-release.yaml b/.github/workflows/pypi-lib-release.yaml index 795f861..8345afc 100644 --- a/.github/workflows/pypi-lib-release.yaml +++ b/.github/workflows/pypi-lib-release.yaml @@ -1,5 +1,5 @@ # This workflow will release project to PyPI -name: CloudFormation CLI Python Plugin Release +name: CloudFormation CLI Python lib Release on: release: