Gross hack because Matt doesn't know how to code
This commit is contained in:
@@ -126,10 +126,8 @@ jobs:
|
|||||||
name: executable-x86_64
|
name: executable-x86_64
|
||||||
path: app/dist
|
path: app/dist
|
||||||
|
|
||||||
- name: Extract and Rename x86_64 Artifact
|
- name: Verify x86_64 Artifact
|
||||||
run: |
|
run: ls -la app/dist
|
||||||
unzip app/dist/executable-x86_64.zip -d app/dist
|
|
||||||
mv app/dist/wolServer app/dist/wolServer-x86_64
|
|
||||||
|
|
||||||
- name: Download ARM Artifact
|
- name: Download ARM Artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
@@ -137,10 +135,26 @@ jobs:
|
|||||||
name: executable-arm
|
name: executable-arm
|
||||||
path: app/dist
|
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
|
- name: Extract and Rename ARM Artifact
|
||||||
run: |
|
run: |
|
||||||
unzip app/dist/executable-arm.zip -d app/dist
|
if [ -f "app/dist/executable-arm.zip" ]; then
|
||||||
mv app/dist/wolServer app/dist/wolServer-arm
|
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
|
- name: Create Release
|
||||||
env:
|
env:
|
||||||
@@ -152,7 +166,7 @@ jobs:
|
|||||||
-d '{
|
-d '{
|
||||||
"tag_name": "v1.0.0",
|
"tag_name": "v1.0.0",
|
||||||
"target_commitish": "main",
|
"target_commitish": "main",
|
||||||
"name": "v1.0.0",
|
"name": "v1.0.0",
|
||||||
"body": "Release description",
|
"body": "Release description",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"prerelease": false
|
"prerelease": false
|
||||||
@@ -162,16 +176,25 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.mytoken }}
|
GITEA_TOKEN: ${{ secrets.mytoken }}
|
||||||
run: |
|
run: |
|
||||||
curl --data-binary "@app/dist/wolServer-x86_64" \
|
if [ -f "app/dist/wolServer-x86_64" ]; then
|
||||||
-H "Authorization: token ${{ secrets.mytoken }}" \
|
curl --data-binary "@app/dist/wolServer-x86_64" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Authorization: token ${{ secrets.mytoken }}" \
|
||||||
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/${release_id}/assets?name=wolServer-x86_64"
|
-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
|
- name: Upload ARM Executable to Release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.mytoken }}
|
GITEA_TOKEN: ${{ secrets.mytoken }}
|
||||||
run: |
|
run: |
|
||||||
curl --data-binary "@app/dist/wolServer-arm" \
|
if [ -f "app/dist/wolServer-arm" ]; then
|
||||||
-H "Authorization: token ${{ secrets.mytoken }}" \
|
curl --data-binary "@app/dist/wolServer-arm" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Authorization: token ${{ secrets.mytoken }}" \
|
||||||
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/${release_id}/assets?name=wolServer-arm"
|
-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