Skip to content

Commit

Permalink
(fix) tweak ci to get short hash
Browse files Browse the repository at this point in the history
  • Loading branch information
strazzere committed Aug 6, 2024
1 parent cb5c9cc commit d5a0900
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ jobs:
- name: Build JAR
run: ./gradlew jar

- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}
tags: |
type=sha,format=short,prefix=
- name: Upload JAR as artifact
uses: actions/upload-artifact@v3
with:
name: axmlprinter-${{ github.sha.slice(0, 7) }}
name: axmlprinter-${{ steps.meta.outputs.tags }}
path: build/libs/*.jar

0 comments on commit d5a0900

Please sign in to comment.