Skip to content

Create Release

Create Release #37

Workflow file for this run

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
name: Create Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Release
uses: softprops/action-gh-release@v1
with:
name: sdsstools ${{ github.ref_name }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install pep517 twine
- name: Build package
run: |
python -m pep517.build --source --binary --out-dir dist/ .
- name: Publish wheels to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: |
twine upload dist/*