From 28661250bb66e64029cfef9a50e63b7d2cbd9734 Mon Sep 17 00:00:00 2001 From: Benedith Mulongo Date: Fri, 18 Oct 2024 14:52:15 +0200 Subject: [PATCH] Update github actions --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3acfc1..bf0fc26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,6 +71,12 @@ jobs: - name: Build the package run: poetry build + - name: Publish artifacts + if: github.ref == 'refs/tags/v*' + run: | + poetry publish --build + echo "Artifacts published successfully" + publish: runs-on: ubuntu-latest needs: build @@ -78,6 +84,6 @@ jobs: - name: 'Upload Artifact' uses: actions/upload-artifact@v4 with: - name: my-artifact - path: $GITHUB_WORKSPACE/norduniclient-package.md + name: ${{ github.event.release.tag_name }}-build + path: dist/ retention-days: 5