Never Run This Commit As Root
This commit is contained in:
@@ -32,7 +32,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: executable-x86_64
|
name: executable-x86_64
|
||||||
path: app/dist/wolServer-x86_64
|
path: app/dist/wolServer
|
||||||
|
|
||||||
- name: Cleanup Docker Images (x86_64)
|
- name: Cleanup Docker Images (x86_64)
|
||||||
run: |
|
run: |
|
||||||
@@ -103,7 +103,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: executable-arm
|
name: executable-arm
|
||||||
path: app/dist/wolServer-arm
|
path: app/dist/wolServer
|
||||||
|
|
||||||
- name: Cleanup Docker Images (ARM)
|
- name: Cleanup Docker Images (ARM)
|
||||||
run: |
|
run: |
|
||||||
@@ -117,16 +117,19 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Create Dist Directory
|
||||||
|
run: mkdir -p app/dist
|
||||||
|
|
||||||
- name: Download x86_64 Artifact
|
- name: Download x86_64 Artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: wolServer-x86_64
|
name: executable-x86_64
|
||||||
path: app/dist
|
path: app/dist
|
||||||
|
|
||||||
- name: Download ARM Artifact
|
- name: Download ARM Artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: wolServer-arm
|
name: executable-arm
|
||||||
path: app/dist
|
path: app/dist
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
@@ -139,7 +142,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
|
||||||
@@ -149,7 +152,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.mytoken }}
|
GITEA_TOKEN: ${{ secrets.mytoken }}
|
||||||
run: |
|
run: |
|
||||||
curl --data-binary "@app/dist/wolServer-x86_64" \
|
curl --data-binary "@app/dist/executable-x86_64" \
|
||||||
-H "Authorization: token ${{ secrets.mytoken }}" \
|
-H "Authorization: token ${{ secrets.mytoken }}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/${release_id}/assets?name=wolServer-x86_64"
|
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/${release_id}/assets?name=wolServer-x86_64"
|
||||||
@@ -158,7 +161,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.mytoken }}
|
GITEA_TOKEN: ${{ secrets.mytoken }}
|
||||||
run: |
|
run: |
|
||||||
curl --data-binary "@app/dist/wolServer-arm" \
|
curl --data-binary "@app/dist/executable-arm" \
|
||||||
-H "Authorization: token ${{ secrets.mytoken }}" \
|
-H "Authorization: token ${{ secrets.mytoken }}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/${release_id}/assets?name=wolServer-arm"
|
"https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/${release_id}/assets?name=wolServer-arm"
|
||||||
|
|||||||
Reference in New Issue
Block a user