ci: harden artifact and release tooling
CI / build (push) Successful in 1m25s
Release / release (push) Successful in 1m51s

This commit is contained in:
dmg
2026-08-01 11:55:45 -04:00
parent ccac20fa2b
commit baed3b4901
2 changed files with 4 additions and 10 deletions
+1 -7
View File
@@ -32,15 +32,9 @@ jobs:
- name: Build and test - name: Build and test
run: ./gradlew clean check jar 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 - name: Upload development artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: spigot-event-producer-${{ github.sha }} name: spigot-event-producer-${{ github.sha }}
path: build/libs/spigot-event-producer-dev-*.jar path: build/libs/*.jar
if-no-files-found: error if-no-files-found: error
+3 -3
View File
@@ -46,9 +46,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: | run: |
npx -y \ npx -y \
-p semantic-release \ -p semantic-release@24.2.9 \
-p @semantic-release/commit-analyzer \ -p @semantic-release/commit-analyzer@13.0.1 \
-p @semantic-release/release-notes-generator \ -p @semantic-release/release-notes-generator@14.1.0 \
semantic-release \ semantic-release \
--branches main \ --branches main \
--plugins @semantic-release/commit-analyzer,@semantic-release/release-notes-generator --plugins @semantic-release/commit-analyzer,@semantic-release/release-notes-generator