Skip to content

Commit 9c20cc2

Browse files
committed
- Modifed upload
1 parent 7f97621 commit 9c20cc2

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

.github/workflows/build-windows.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,24 @@ jobs:
2727
- name: Compile with Nuitka
2828
run: nuitka Underbridge.py --assume-yes-for-downloads
2929

30-
- name: Build NSIS installer
31-
run: makensis wizard.nsi
32-
3330
- name: List Output Files
3431
run: dir App_Release\windows
3532

33+
- name: Zip the output
34+
run: python zipit.py dist/Underbridge.dist ubridge-light.zip
35+
36+
- name: Create GitHub Release and Upload Asset
37+
uses: softprops/action-gh-release@v1
38+
with:
39+
name: "Underbridge-light Release"
40+
tag: ${{ github.ref_name }}
41+
draft: true
42+
assets: |
43+
ubridge-light.zip
44+
3645
- name: Upload to Cloud
3746
run: |
3847
python nc_upload.py ${{ secrets.UBRIDGE_USER }} ${{ secrets.UBRIDGE_PASSWD }} `
3948
https://cloud.raise-uav.com/ `
40-
ubridge-light-wizard.exe `
41-
App_Release/windows/Ubridge-light-wizard.exe
49+
underbidge.exe `
50+
App_Release/windows/underbridge.exe

.github/workflows/build_linux.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- run: ls dist/
3131

3232
- name: Zip the output
33-
run: python zipit.py dist/Underbridge.dist ubridge-light.zip
33+
run: python zipit.py dist/Underbridge.dist underbridge-light.zip
3434

3535
- name: Create GitHub Release and Upload Asset
3636
uses: softprops/action-gh-release@v1
@@ -39,7 +39,13 @@ jobs:
3939
tag: ${{ github.ref_name }}
4040
draft: true
4141
assets: |
42-
ubridge-light.zip
43-
44-
- name: NC uploader
45-
run: python nc_upload.py ${{ secrets.UBRIDGE_USER }} ${{ secrets.UBRIDGE_PASSWD }} https://cloud.raise-uav.com/ ubridge-light.zip App_Release/ubridge-light-linux.zip
42+
underbridge-light.zip
43+
44+
- name: Upload to Server
45+
run: |
46+
packit/ubridge/bin/python nc_upload.py \
47+
${{ secrets.UBRIDGE_USER }} \
48+
${{ secrets.UBRIDGE_PASSWD }} \
49+
https://cloud.raise-uav.com/ \
50+
underbridge-light.zip \
51+
App_Release/light/underbridge-light-linux.zip

0 commit comments

Comments
 (0)