See last commit
This commit is contained in:
@@ -28,11 +28,15 @@ jobs:
|
|||||||
cd app
|
cd app
|
||||||
pyinstaller --onefile --add-data "ui:ui" wolServer.py
|
pyinstaller --onefile --add-data "ui:ui" wolServer.py
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload x86_64 Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: executable-x86_64
|
name: executable-x86_64
|
||||||
path: app/dist/wolServer
|
path: app/dist/wolServer-x86_64
|
||||||
|
|
||||||
|
- name: Cleanup Docker Images (x86_64)
|
||||||
|
run: |
|
||||||
|
docker image prune -a -f
|
||||||
|
|
||||||
build-arm:
|
build-arm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -99,7 +103,11 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: executable-arm
|
name: executable-arm
|
||||||
path: app/dist/wolServer
|
path: app/dist/wolServer-arm
|
||||||
|
|
||||||
|
- name: Cleanup Docker Images (ARM)
|
||||||
|
run: |
|
||||||
|
docker image prune -a -f
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [build-x86_64, build-arm]
|
needs: [build-x86_64, build-arm]
|
||||||
@@ -109,6 +117,18 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Download x86_64 Artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: wolServer-x86_64
|
||||||
|
path: app/dist
|
||||||
|
|
||||||
|
- name: Download ARM Artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: wolServer-arm
|
||||||
|
path: app/dist
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.mytoken }}
|
GITEA_TOKEN: ${{ secrets.mytoken }}
|
||||||
@@ -129,7 +149,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.mytoken }}
|
GITEA_TOKEN: ${{ secrets.mytoken }}
|
||||||
run: |
|
run: |
|
||||||
curl --data-binary "@app/dist/wolServer" \
|
curl --data-binary "@app/dist/wolServer-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"
|
||||||
@@ -138,7 +158,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.mytoken }}
|
GITEA_TOKEN: ${{ secrets.mytoken }}
|
||||||
run: |
|
run: |
|
||||||
curl --data-binary "@app/dist/wolServer" \
|
curl --data-binary "@app/dist/wolServer-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