this should fix it
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user