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