change build.yml
This commit is contained in:
parent
01fd73fa1a
commit
1f02781d07
|
|
@ -70,18 +70,4 @@ jobs:
|
|||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-F "attachment=@${{ steps.jar.outputs.jar_path }}" \
|
||||
"https://git.itqop.pw/api/v1/repos/itqop/whitelist-neoforge/releases/${{ steps.create_release.outputs.release_id }}/assets?name=${{ steps.jar.outputs.jar_name }}"
|
||||
echo "✓ JAR uploaded to Release"
|
||||
|
||||
- name: Upload to Gitea Package Registry
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.mod_version }}"
|
||||
JAR_PATH="${{ steps.jar.outputs.jar_path }}"
|
||||
JAR_NAME="${{ steps.jar.outputs.jar_name }}"
|
||||
|
||||
curl -s -X PUT \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: application/java-archive" \
|
||||
--data-binary @"$JAR_PATH" \
|
||||
"https://git.itqop.pw/api/packages/itqop/generic/whitelist-neoforge/$VERSION/$JAR_NAME"
|
||||
|
||||
echo "✓ Package uploaded to Registry"
|
||||
echo "✓ JAR uploaded to Release"
|
||||
Loading…
Reference in New Issue