Gross hack because Matt doesn't know how to code
This commit is contained in:
@@ -126,10 +126,8 @@ jobs:
|
||||
name: executable-x86_64
|
||||
path: app/dist
|
||||
|
||||
- name: Extract and Rename x86_64 Artifact
|
||||
run: |
|
||||
unzip app/dist/executable-x86_64.zip -d app/dist
|
||||
mv app/dist/wolServer app/dist/wolServer-x86_64
|
||||
- name: Verify x86_64 Artifact
|
||||
run: ls -la app/dist
|
||||
|
||||
- name: Download ARM Artifact
|
||||
uses: actions/download-artifact@v3
|
||||
@@ -137,10 +135,26 @@ jobs:
|
||||
name: executable-arm
|
||||
path: app/dist
|
||||
|
||||
- name: Verify ARM Artifact
|
||||
run: ls -la app/dist
|
||||
|
||||
- name: Extract and Rename x86_64 Artifact
|
||||
run: |
|
||||
if [ -f "app/dist/executable-x86_64.zip" ]; then
|
||||
unzip app/dist/executable-x86_64.zip -d app/dist
|
||||
mv app/dist/wolServer app/dist/wolServer-x86_64
|
||||
else
|
||||
echo "x86_64 artifact not found"
|
||||
fi
|
||||
|
||||
- name: Extract and Rename ARM Artifact
|
||||
run: |
|
||||
unzip app/dist/executable-arm.zip -d app/dist
|
||||
mv app/dist/wolServer app/dist/wolServer-arm
|
||||
if [ -f "app/dist/executable-arm.zip" ]; then
|
||||
unzip app/dist/executable-arm.zip -d app/dist
|
||||
mv app/dist/wolServer app/dist/wolServer-arm
|
||||
else
|
||||
echo "ARM artifact not found"
|
||||
fi
|
||||
|
||||
- name: Create Release
|
||||
env:
|
||||
@@ -152,7 +166,7 @@ jobs:
|
||||
-d '{
|
||||
"tag_name": "v1.0.0",
|
||||
"target_commitish": "main",
|
||||
"name": "v1.0.0",
|
||||
"name": "v1.0.0",
|
||||
"body": "Release description",
|
||||
"draft": false,
|
||||
"prerelease": false
|
||||
@@ -162,16 +176,25 @@ jobs:
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.mytoken }}
|
||||
run: |
|
||||
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"
|
||||
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/${release_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: |
|
||||
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"
|
||||
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/${release_id}/assets?name=wolServer-arm"
|
||||
else
|
||||
echo "ARM executable not found"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user