Skip to content

release-script #17

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2022
Merged
Show file tree
Hide file tree
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
41 changes: 41 additions & 0 deletions ./workflows/python-release.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI


on:
release:
types: [created]


jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: "ubuntu-latest"

steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: 3.9

- name: Install dependencies
run: |
pip install pipenv
pip install build
pipenv install --dev

- name: Test
run: |
pipenv run pytest

- name: Build
run: >-
python -m
build
--sdist
--wheel
--outdir dist/

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,7 @@
setup(
name='serverlessworkflow.sdk',
packages=find_packages(include=['serverlessworkflow', 'serverlessworkflow.sdk']),
version='0.1.0',
version='1.0.0',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YAY!!!!!

description='Serverless Workflow Specification - Python SDK',
long_description=readme,
long_description_content_type="text/markdown",
Expand Down