From c16836c54c66c0253b364a1c5279f3ac2e3744f3 Mon Sep 17 00:00:00 2001 From: Kristen Thyng Date: Fri, 17 Mar 2023 12:37:28 -0500 Subject: [PATCH] release action --- .github/workflows/release.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..3e1a7ee --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,24 @@ + +--- +name: Release + +on: [push] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + - name: Install dependencies + run: | + python -m pip install -U pip wheel "setuptools<66.0.0" setuptools-scm twine + - name: Build distributions + run: python setup.py sdist bdist_wheel + + - name: Publish to PyPI + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + user: ${{ secrets.PYPI_USERNAME }} + password: ${{ secrets.PYPI_PASSWORD }}