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
|
||||
|
||||
@@ -46,9 +46,9 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
run: |
|
||||
npx -y \
|
||||
-p semantic-release \
|
||||
-p @semantic-release/commit-analyzer \
|
||||
-p @semantic-release/release-notes-generator \
|
||||
-p semantic-release@24.2.9 \
|
||||
-p @semantic-release/commit-analyzer@13.0.1 \
|
||||
-p @semantic-release/release-notes-generator@14.1.0 \
|
||||
semantic-release \
|
||||
--branches main \
|
||||
--plugins @semantic-release/commit-analyzer,@semantic-release/release-notes-generator
|
||||
|
||||
Reference in New Issue
Block a user