ci: harden artifact and release tooling
This commit is contained in:
@@ -32,15 +32,9 @@ jobs:
|
||||
- name: Build and test
|
||||
run: ./gradlew clean check jar
|
||||
|
||||
- name: Name development artifact
|
||||
run: |
|
||||
short_sha=$(printf '%s' "$GITHUB_SHA" | cut -c1-7)
|
||||
cp build/libs/spigot-event-producer-0.1.0-SNAPSHOT.jar \
|
||||
"build/libs/spigot-event-producer-dev-${short_sha}.jar"
|
||||
|
||||
- name: Upload development artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: spigot-event-producer-${{ github.sha }}
|
||||
path: build/libs/spigot-event-producer-dev-*.jar
|
||||
path: build/libs/*.jar
|
||||
if-no-files-found: error
|
||||
|
||||
Reference in New Issue
Block a user