Skip to content

Commit 9d0726f

Browse files
ci: attach built JARs to GitHub Release on tag push
Add a github-release job that downloads the llama-jars artifact produced by the package job and uploads them to the GitHub Release via softprops/action-gh-release. Runs only when a v* tag is pushed, after publish-release completes successfully.
1 parent 2d87277 commit 9d0726f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,23 @@ jobs:
656656
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN }}
657657
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
658658

659+
github-release:
660+
name: Attach Binaries to GitHub Release
661+
needs: [publish-release]
662+
if: startsWith(github.ref, 'refs/tags/v')
663+
runs-on: ubuntu-latest
664+
permissions:
665+
contents: write
666+
steps:
667+
- uses: actions/download-artifact@v8
668+
with:
669+
name: llama-jars
670+
path: release-assets/
671+
- name: Upload release assets
672+
uses: softprops/action-gh-release@v2
673+
with:
674+
files: release-assets/*
675+
659676
post-publish:
660677
name: Post-Publish
661678
needs: [package, publish-snapshot, publish-release]

0 commit comments

Comments
 (0)