Update github actions
This commit is contained in:
parent
0da0193a0a
commit
28661250bb
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -71,6 +71,12 @@ jobs:
|
||||||
- name: Build the package
|
- name: Build the package
|
||||||
run: poetry build
|
run: poetry build
|
||||||
|
|
||||||
|
- name: Publish artifacts
|
||||||
|
if: github.ref == 'refs/tags/v*'
|
||||||
|
run: |
|
||||||
|
poetry publish --build
|
||||||
|
echo "Artifacts published successfully"
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -78,6 +84,6 @@ jobs:
|
||||||
- name: 'Upload Artifact'
|
- name: 'Upload Artifact'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: my-artifact
|
name: ${{ github.event.release.tag_name }}-build
|
||||||
path: $GITHUB_WORKSPACE/norduniclient-package.md
|
path: dist/
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
Loading…
Reference in a new issue