From 2d89d79e1dc87b4d30a2e3c464a954d29d7b51de Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Mon, 9 Sep 2024 09:30:37 -0500 Subject: [PATCH] chore: release tools --- .github/workflows/publish.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..2c55069 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,32 @@ +name: Release + +on: + release: + types: [released] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e .[release] + + - name: Build + run: python setup.py sdist bdist_wheel + + - name: Publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: twine upload dist/* --verbose