Skip to content

Commit

Permalink
add github workflow for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
simleo committed Mar 22, 2023
1 parent 3042f12 commit b58de29
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Release
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit b58de29

Please sign in to comment.