Skip to content

Commit bb6236d

Browse files
author
John Tompkins
committed
Add PyPI release
1 parent 7d8216e commit bb6236d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/pypi-release.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will release project to PyPI
2+
name: CloudFormation CLI Java Plugin Release
3+
4+
on:
5+
release:
6+
types: [ published ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python 3.8
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.8
17+
- name: Install dependencies
18+
run: |
19+
pip install --upgrade pip wheel twine
20+
- name: Package project
21+
run: |
22+
python setup.py sdist bdist_wheel
23+
- name: Publish distribution 📦 to PyPI (If triggered from release)
24+
uses: pypa/gh-action-pypi-publish@master
25+
with:
26+
password: ${{ secrets.PYPI_API_KEY_CLOUDFORMATION_CLI_JAVA_PLUGIN }}

0 commit comments

Comments
 (0)