I just wanna tell you how I'm feeling
This commit is contained in:
@@ -151,7 +151,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.mytoken }}
|
GITEA_TOKEN: ${{ secrets.mytoken }}
|
||||||
run: |
|
run: |
|
||||||
release_id=$(curl -X POST "https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases" \
|
curl -X POST "https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases" \
|
||||||
-H "Authorization: token ${{ secrets.mytoken }}" \
|
-H "Authorization: token ${{ secrets.mytoken }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
@@ -161,7 +161,7 @@ jobs:
|
|||||||
"body": "Release description",
|
"body": "Release description",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"prerelease": false
|
"prerelease": false
|
||||||
}' | jq -r '.id')
|
}'
|
||||||
|
|
||||||
- name: Upload x86_64 Executable to Release
|
- name: Upload x86_64 Executable to Release
|
||||||
env:
|
env:
|
||||||
@@ -171,7 +171,7 @@ jobs:
|
|||||||
curl --data-binary "@app/dist/wolServer-x86_64" \
|
curl --data-binary "@app/dist/wolServer-x86_64" \
|
||||||
-H "Authorization: token ${{ secrets.mytoken }}" \
|
-H "Authorization: token ${{ secrets.mytoken }}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/${release_id}/assets?name=wolServer-x86_64"
|
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/$(curl -s https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/latest | jq -r '.id')/assets?name=wolServer-x86_64"
|
||||||
else
|
else
|
||||||
echo "x86_64 executable not found"
|
echo "x86_64 executable not found"
|
||||||
fi
|
fi
|
||||||
@@ -184,7 +184,7 @@ jobs:
|
|||||||
curl --data-binary "@app/dist/wolServer-arm" \
|
curl --data-binary "@app/dist/wolServer-arm" \
|
||||||
-H "Authorization: token ${{ secrets.mytoken }}" \
|
-H "Authorization: token ${{ secrets.mytoken }}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/${release_id}/assets?name=wolServer-arm"
|
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/$(curl -s https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/latest | jq -r '.id')/assets?name=wolServer-arm"
|
||||||
else
|
else
|
||||||
echo "ARM executable not found"
|
echo "ARM executable not found"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user