Skip to content

Commit

Permalink
combine release and publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
cheginit committed Dec 7, 2020
1 parent c8668ac commit 7a0aadd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
tags:
- 'v*'

name: Create Release
name: Release and publish

jobs:
build:
Expand All @@ -12,6 +12,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -21,7 +22,27 @@ jobs:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Please check the [HISTORY.rst](HISTORY.rst) file for a detailed list
Please check [HISTORY.rst](HISTORY.rst) file for a detailed list
of changes.
draft: false
prerelease: true

- name: Set up Python
uses: actions/setup-python@master
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build dist and wheel
run: |
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
History
=======

0.2.0 (unreleased)
0.2.0 (2020-12-06)
------------------

Breaking Changes
Expand Down

0 comments on commit 7a0aadd

Please sign in to comment.