Update github actions
Some checks are pending
Python CI / test (push) Waiting to run
Python CI / build (push) Blocked by required conditions
Python CI / publish (push) Blocked by required conditions

This commit is contained in:
Benedith Mulongo 2024-10-18 14:52:15 +02:00
parent 0da0193a0a
commit 28661250bb
Signed by: benedith
GPG key ID: 62D68B584B4B3EB3

View file

@ -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