release.yml
31 lines
| 650 B
| text/x-yaml
|
YamlLexer
Matthias Bussonnier
|
r26452 | name: Github releases | ||
on: | ||||
push: | ||||
tags: | ||||
- '*.*.*' | ||||
jobs: | ||||
build: | ||||
runs-on: ubuntu-latest | ||||
steps: | ||||
- name: Checkout | ||||
uses: actions/checkout@v2 | ||||
- name: Set up Python 3.9 | ||||
uses: actions/setup-python@v2 | ||||
with: | ||||
python-version: 3.9 | ||||
- name: Make packages | ||||
run: | | ||||
pip install --upgrade setuptools wheel | ||||
rm -rf dist/ | ||||
python setup.py sdist | ||||
python setup.py bdist_wheel | ||||
- name: Github release | ||||
uses: softprops/action-gh-release@v1 | ||||
with: | ||||
files: dist/* | ||||
env: | ||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||