From fc08609e901816466e995621c1a380b0da16fd32 Mon Sep 17 00:00:00 2001 From: ajkdrag Date: Tue, 12 Mar 2024 11:33:22 +0530 Subject: [PATCH] Fixed ci file --- .github/workflows/ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cad2e84..765ee89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,6 +58,19 @@ jobs: - name: Generate docs run: | make docs + - name: Generate docs + run: | + make docs + - name: Generate package + if: github.event_name == 'release' + run: | + make dist + - name: Upload distribution package + if: github.event_name == 'release' + uses: actions/upload-artifact@master + with: + name: dist + path: dist pypi-publish: runs-on: ubuntu-latest needs: build @@ -65,8 +78,10 @@ jobs: id-token: write if: github.event_name == 'release' steps: - - name: Generate package - run: | - make dist + - name: Download distribution package + uses: actions/download-artifact@master + with: + name: dist + path: dist - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1