Skip to content

Commit

Permalink
feat(ci): automated pypi release and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
aexvir committed Mar 2, 2021
1 parent 576af0f commit e8e0b6a
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: Release
on:
push:
tags:
- "v*"

jobs:
build-and-publish:
name: Publish PyPI package
runs-on: ubuntu-l
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: >-
python -m
pip install
setuptools
wheel
--user
- name: Build wheels
run: >-
python
setup.py
sdist
bdist_wheel
--universal
- name: Publish package to pypi.org
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}

release-notes:
name: Release Notes
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Generate changelog
uses: docker://aevea/release-notary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit e8e0b6a

Please sign in to comment.