From ddfdfacec88699e8838e22ffdc5d13aacb38a903 Mon Sep 17 00:00:00 2001 From: rxu17 <26471741+rxu17@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:30:54 -0800 Subject: [PATCH] try merging build and publish --- .github/workflows/ci.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1586ea3c..01f185dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,9 +57,11 @@ jobs: - uses: actions/checkout@v2 - uses: psf/black@stable - build-dist: + build-and-publish: needs: [test, lint] runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v2 - name: Set up Python @@ -74,12 +76,5 @@ jobs: run: python -m build - name: List contents of dist directory run: ls -l dist - - publish: - needs: [test, lint, build-dist] - runs-on: ubuntu-latest - permissions: - id-token: write - steps: - name: Publish to pypi uses: pypa/gh-action-pypi-publish@release/v1