change build.yml
Build and Release / build (push) Has been cancelled
Details
Build and Release / build (push) Has been cancelled
Details
This commit is contained in:
parent
dac572eb23
commit
48ef6c9552
|
|
@ -14,10 +14,10 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Java
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y default-jdk-headless
|
||||
apt-get install -y default-jdk-headless jq curl
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
|
|
@ -54,7 +54,7 @@ jobs:
|
|||
TAG_NAME="v${{ steps.version.outputs.mod_version }}"
|
||||
RELEASE_NAME="Release $TAG_NAME"
|
||||
|
||||
RESPONSE=$(curl -X POST \
|
||||
RESPONSE=$(curl -s -X POST \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"tag_name\":\"$TAG_NAME\",\"name\":\"$RELEASE_NAME\",\"draft\":false,\"prerelease\":false}" \
|
||||
|
|
@ -66,7 +66,7 @@ jobs:
|
|||
|
||||
- name: Upload JAR to Release
|
||||
run: |
|
||||
curl -X POST \
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F "attachment=@${{ steps.jar.outputs.jar_path }}" \
|
||||
|
|
@ -78,7 +78,7 @@ jobs:
|
|||
JAR_PATH="${{ steps.jar.outputs.jar_path }}"
|
||||
JAR_NAME="${{ steps.jar.outputs.jar_name }}"
|
||||
|
||||
curl -X PUT \
|
||||
curl -s -X PUT \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: application/java-archive" \
|
||||
--data-binary @"$JAR_PATH" \
|
||||
|
|
|
|||
Loading…
Reference in New Issue