From 03cace00814bf47a86e21510e25c2d734cf277d8 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 15 Nov 2022 15:29:09 -0800 Subject: [PATCH] fix publish action --- .github/workflows/publish.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 99a0794..89a4a18 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,10 +10,24 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - run: | - python -m pip install --upgrade pip - python -m pip install setuptools wheel - python -m pip install . + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - 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: Publish package uses: pypa/gh-action-pypi-publish@release/v1 with: