Skip to content

Commit

Permalink
Add commit hash to actions artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Archy-X committed Nov 25, 2023
1 parent 6c23370 commit bd48177
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
name: Build Plugin with Gradle

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

env:
COMMIT_HASH: ${{ substring(github.sha, 0, 7) }}
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -27,5 +24,9 @@ jobs:
arguments: build
- uses: actions/upload-artifact@v3
with:
name: AureliumSkills
path: build/libs/AureliumSkills-**.jar
name: AureliumSkills-${{ env.COMMIT_HASH }}
path: build/libs/AureliumSkills-**.jar
- uses: actions/upload-artifact@v3
with:
name: AuraSkills-${{ env.COMMIT_HASH }}
path: build/libs/AuraSkills-**.jar

0 comments on commit bd48177

Please sign in to comment.