Skip to content

Commit 7c1d276

Browse files
committed
- Modifed upload
1 parent ed86bd3 commit 7c1d276

File tree

2 files changed

+37
-23
lines changed

2 files changed

+37
-23
lines changed

.github/workflows/build-windows.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [ qt ]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
build:
912
name: Build with Nuitka and Upload
@@ -31,20 +34,20 @@ jobs:
3134
run: dir dist
3235

3336
- name: Zip the output
34-
run: python zipit.py dist/Underbridge.dist ubridge-light.zip
37+
run: python zipit.py dist/Underbridge.dist underbridge-light.zip
3538

3639
- name: Create GitHub Release and Upload Asset
3740
uses: softprops/action-gh-release@v1
3841
with:
39-
name: "Underbridge-light Release"
40-
tag: ${{ github.ref_name }}
41-
draft: true
42-
assets: |
43-
ubridge-light.zip
42+
tag_name: qt
43+
name: "Underbridge-light Release (qt)"
44+
draft: false
45+
prerelease: false
46+
files: underbridge-light.zip
4447

4548
- name: Upload to Cloud
4649
run: |
4750
python nc_upload.py ${{ secrets.UBRIDGE_USER }} ${{ secrets.UBRIDGE_PASSWD }} `
4851
https://cloud.raise-uav.com/ `
49-
underbidge.exe `
52+
underbridge.exe `
5053
App_Release/windows/underbridge.exe

.github/workflows/build_linux.yaml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,55 @@
1-
name: Build linux app
1+
name: Build Linux App
22

33
on:
44
push:
55
branches: [ qt ]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
build-linux:
912
runs-on: ubuntu-latest
1013
env:
1114
RUNNER_TOOL_CACHE: /toolcache
1215

1316
steps:
14-
- uses: actions/checkout@v4
17+
- name: Checkout code
18+
uses: actions/checkout@v4
1519

16-
- uses: actions/setup-python@v5
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
1722
with:
18-
python-version: '3.12' # Use stable Python that matches hosted runner's GLIBC
23+
python-version: '3.12'
1924

20-
- run: sudo apt update
21-
- run: sudo apt install -y portaudio19-dev python3-pyaudio patchelf
25+
- name: Install system dependencies
26+
run: |
27+
sudo apt update
28+
sudo apt install -y portaudio19-dev python3-pyaudio patchelf
2229
23-
- run: pip install --upgrade pip wheel
24-
- run: pip install -r requirements-linux.txt
25-
- run: pip install nuitka argparse requests
30+
- name: Install Python dependencies
31+
run: |
32+
pip install --upgrade pip wheel
33+
pip install -r requirements-linux.txt
34+
pip install nuitka argparse requests
2635
2736
- name: Build with Nuitka
2837
run: nuitka underbridge.py
2938

30-
- run: ls dist/
39+
- name: List output files
40+
run: ls dist/
3141

3242
- name: Zip the output
3343
run: python zipit.py dist/Underbridge.dist underbridge-light.zip
3444

35-
- name: Create GitHub Release and Upload Asset
45+
- name: Create GitHub Release and Upload Asset (tag: qt)
3646
uses: softprops/action-gh-release@v1
3747
with:
38-
name: "Underbridge-light Release"
39-
tag: ${{ github.ref_name }}
40-
draft: true
41-
assets: |
42-
underbridge-light.zip
48+
tag_name: qt
49+
name: "Underbridge-light Release (qt)"
50+
draft: false
51+
prerelease: false
52+
files: underbridge-light.zip
4353

4454
- name: Upload to Server
4555
run: |
@@ -49,3 +59,4 @@ jobs:
4959
https://cloud.raise-uav.com/ \
5060
underbridge-light.zip \
5161
App_Release/light/underbridge-light-linux.zip
62+

0 commit comments

Comments
 (0)