diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..24392e6 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,29 @@ +name: Release + +on: + push: + tags: + - 'v0.1.1' # Match tags that follow semantic versioning + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + pip install -r requirements.txt + + - name: Build and publish + env: + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/*