From 0b88d8f58c0af18143694e27e309d06079693fe1 Mon Sep 17 00:00:00 2001 From: Ethan Steinberg Date: Tue, 5 Dec 2023 14:13:48 -0800 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dc7cfe17..dd895fb0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,13 +6,21 @@ on: jobs: pypi-publish: - name: Upload release to PyPI + name: Build and upload release to PyPI runs-on: ubuntu-latest steps: - # retrieve your distributions here - - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.pypi_token }} + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}