From 11fc1583644d32ed8a5bd172972266851addf055 Mon Sep 17 00:00:00 2001 From: konsthol Date: Mon, 3 Nov 2025 18:39:20 +0200 Subject: [PATCH] this should fix it --- .gitea/workflows/release.yaml | 48 ++++++----------------------------- 1 file changed, 8 insertions(+), 40 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 14441de..6e54f2b 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -122,46 +122,14 @@ jobs: run: echo "TAG=v$(TZ='Europe/Athens' date +'%Y%d%m%H%M%S')" >> $GITEA_ENV - name: Create Release - env: - GITEA_TOKEN: ${{ secrets.mytoken }} - run: | - 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 '{ - "tag_name": "'"${{ env.TAG }}"'", - "target_commitish": "main", - "name": "'"${{ env.TAG }}"'", - "body": "Automated push release", - "draft": false, - "prerelease": false - }' - - - name: Upload x86_64 Executable to Release - env: - GITEA_TOKEN: ${{ secrets.mytoken }} - run: | - if [ -f "app/dist/wolServer-x86_64" ]; then - 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/$(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 - - - name: Upload ARM Executable to Release - env: - GITEA_TOKEN: ${{ secrets.mytoken }} - run: | - if [ -f "app/dist/wolServer-arm" ]; then - 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/$(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 + uses: akkuman/gitea-release-action@v1 + with: + tag_name: "${{ env.TAG }}" + target_commitish: main + body: "Automated push release" + token: ${{ secrets.mytoken }} + files: |- + app/dist/** cleanup: needs: [release]