diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2021-05-16 16:48:51 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2021-05-16 16:48:51 +0200 |
commit | 22708e7485a8f3350e16fe3e6f8ba0ed395ced0e (patch) | |
tree | 3f401b63c95413aed87572e7ca0b0caca87eb580 /.github/workflows/pypi.yml | |
parent | Use the new APIs from usbmon-tools to simplify chatter extraction. (diff) | |
download | freestyle-hid-22708e7485a8f3350e16fe3e6f8ba0ed395ced0e.tar freestyle-hid-22708e7485a8f3350e16fe3e6f8ba0ed395ced0e.tar.gz freestyle-hid-22708e7485a8f3350e16fe3e6f8ba0ed395ced0e.tar.bz2 freestyle-hid-22708e7485a8f3350e16fe3e6f8ba0ed395ced0e.tar.lz freestyle-hid-22708e7485a8f3350e16fe3e6f8ba0ed395ced0e.tar.xz freestyle-hid-22708e7485a8f3350e16fe3e6f8ba0ed395ced0e.tar.zst freestyle-hid-22708e7485a8f3350e16fe3e6f8ba0ed395ced0e.zip |
Diffstat (limited to '.github/workflows/pypi.yml')
-rw-r--r-- | .github/workflows/pypi.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..ba69613 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,35 @@ +# SPDX-FileCopyrightText: 2013 The freestyle-hid Authors +# +# SPDX-License-Identifier: 0BSD + +name: Publish to TestPyPI (and PyPI) + +on: push + +jobs: + build-n-publish: + name: Build package and publish on TestPyPI (and PyPI) + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install pypa/build + run: | + pip install build + - name: Build a binary wheel and a source tarball + run: | + python -m build --sdist --wheel --outdir dist/ . + - name: Publish package to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ + - name: Publish package to PyPI + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} |