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