Never Run This Commit As Root

This commit is contained in:
2024-12-15 19:21:37 +02:00
parent f415cf5aee
commit 35cc873453

View File

@@ -32,7 +32,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: executable-x86_64
path: app/dist/wolServer-x86_64
path: app/dist/wolServer
- name: Cleanup Docker Images (x86_64)
run: |
@@ -103,7 +103,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: executable-arm
path: app/dist/wolServer-arm
path: app/dist/wolServer
- name: Cleanup Docker Images (ARM)
run: |
@@ -117,16 +117,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Create Dist Directory
run: mkdir -p app/dist
- name: Download x86_64 Artifact
uses: actions/download-artifact@v3
with:
name: wolServer-x86_64
name: executable-x86_64
path: app/dist
- name: Download ARM Artifact
uses: actions/download-artifact@v3
with:
name: wolServer-arm
name: executable-arm
path: app/dist
- name: Create Release
@@ -139,7 +142,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
@@ -149,7 +152,7 @@ jobs:
env:
GITEA_TOKEN: ${{ secrets.mytoken }}
run: |
curl --data-binary "@app/dist/wolServer-x86_64" \
curl --data-binary "@app/dist/executable-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"
@@ -158,7 +161,7 @@ jobs:
env:
GITEA_TOKEN: ${{ secrets.mytoken }}
run: |
curl --data-binary "@app/dist/wolServer-arm" \
curl --data-binary "@app/dist/executable-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"