From e50cce1762166ec4216344b075427f3f4965531c Mon Sep 17 00:00:00 2001 From: konsthol Date: Sun, 15 Dec 2024 21:58:17 +0200 Subject: [PATCH] I just wanna tell you how I'm feeling --- .gitea/workflows/release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index f837e6e..90c3b90 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -151,7 +151,7 @@ jobs: env: GITEA_TOKEN: ${{ secrets.mytoken }} 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 "Content-Type: application/json" \ -d '{ @@ -161,7 +161,7 @@ jobs: "body": "Release description", "draft": false, "prerelease": false - }' | jq -r '.id') + }' - name: Upload x86_64 Executable to Release env: @@ -171,7 +171,7 @@ jobs: curl --data-binary "@app/dist/wolServer-x86_64" \ -H "Authorization: token ${{ secrets.mytoken }}" \ -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 echo "x86_64 executable not found" fi @@ -184,7 +184,7 @@ jobs: curl --data-binary "@app/dist/wolServer-arm" \ -H "Authorization: token ${{ secrets.mytoken }}" \ -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 echo "ARM executable not found" fi