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 e0117c5 commit 539a243
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 30 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/python-publish.yml

This file was deleted.

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 }}

0 comments on commit 539a243

Please sign in to comment.