chore: Automatically create github release after tagging

This commit is contained in:
Serg Tereshchenko 2022-05-27 19:29:28 +03:00
parent f550f7d3e4
commit 4b1adbe900
2 changed files with 24 additions and 0 deletions

24
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Release
on:
push:
tags:
- v*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Build artifacts
run: |
pip install -q wheel
python setup.py sdist bdist_wheel
- name: Create release
uses: softprops/action-gh-release@v1
with:
files: dist/*