Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/pypi-lib-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow will release project to PyPI
name: CloudFormation CLI Python lib 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 }}