From a63cab0d7728e56c24931d5f2ccfb2af0967879e Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Fri, 9 Sep 2022 17:56:45 +0200 Subject: [PATCH] ci: Build and upload wheels --- .github/workflows/wheels.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/wheels.yaml diff --git a/.github/workflows/wheels.yaml b/.github/workflows/wheels.yaml new file mode 100644 index 0000000..4be2cb1 --- /dev/null +++ b/.github/workflows/wheels.yaml @@ -0,0 +1,18 @@ +name: build +on: + push: + tags: + - 'v[0-9]*' + +jobs: + wheels: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: python -m pip install build twine + - run: python -m build + - run: python -m twine upload dist/* + env: + TWINE_REPOSITORY: testpypi + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI }}