this should fix it

This commit is contained in:
2025-11-03 18:39:20 +02:00
parent 6516fb0f7b
commit 11fc158364

View File

@@ -122,46 +122,14 @@ jobs:
run: echo "TAG=v$(TZ='Europe/Athens' date +'%Y%d%m%H%M%S')" >> $GITEA_ENV run: echo "TAG=v$(TZ='Europe/Athens' date +'%Y%d%m%H%M%S')" >> $GITEA_ENV
- name: Create Release - name: Create Release
env: uses: akkuman/gitea-release-action@v1
GITEA_TOKEN: ${{ secrets.mytoken }} with:
run: | tag_name: "${{ env.TAG }}"
curl -X POST "https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases" \ target_commitish: main
-H "Authorization: token ${{ secrets.mytoken }}" \ body: "Automated push release"
-H "Content-Type: application/json" \ token: ${{ secrets.mytoken }}
-d '{ files: |-
"tag_name": "'"${{ env.TAG }}"'", app/dist/**
"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
cleanup: cleanup:
needs: [release] needs: [release]