From 7e77bec183669095e43e219c03d36e75399510bd Mon Sep 17 00:00:00 2001 From: "Saralegui Vallejo, Unai" Date: Wed, 19 May 2021 17:11:10 +0200 Subject: [PATCH] Create pip-upload.yml --- .github/workflows/pip-upload.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pip-upload.yml diff --git a/.github/workflows/pip-upload.yml b/.github/workflows/pip-upload.yml new file mode 100644 index 0000000..fbd75e1 --- /dev/null +++ b/.github/workflows/pip-upload.yml @@ -0,0 +1,33 @@ +name: Publish +on: + release: + types: [published] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Prepare repo + uses: actions/checkout@master + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + . + - name: Upload + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file