@@ -3,11 +3,31 @@ name: Build and Release Desktop Client
33on :
44 workflow_dispatch :
55 inputs :
6- serverip :
7- default : ' 0 .0.0.0 :4000'
6+ server_url :
7+ default : ' http://127 .0.0.1 :4000'
88 required : false
99 type : string
10- description : ' Server IP for RCS CTF API Server'
10+ description : ' Server URL (with port) for RCS CTF API Server'
11+ release_version :
12+ default : ' 0.0.0-dev'
13+ required : false
14+ type : string
15+ description : ' Release version for the client'
16+ release_name :
17+ default : ' local-development'
18+ required : false
19+ type : string
20+ description : ' Release name for the client'
21+ is_pre_release :
22+ default : true
23+ required : false
24+ type : boolean
25+ description : ' Is this a pre-release?'
26+ draft_release :
27+ default : true
28+ required : false
29+ type : boolean
30+ description : ' Do you want to draft?'
1131
1232permissions :
1333 issues : write
2343 matrix :
2444 platform : [macos-latest, ubuntu-20.04, windows-latest]
2545
26- runs-on : ubuntu-latest
46+ runs-on : ${{ matrix.platform }}
2747
2848 steps :
2949 - name : Check out code
@@ -33,11 +53,14 @@ jobs:
3353
3454 - name : Setup Environment
3555 uses : ./.github/actions/setup
36-
56+
3757 - name : Copy before build
3858 run : |
39- cd packages/deployer-url
40- node entrypoint.js ${{ github.event.inputs.serverip }}
59+ bash bootstrap.sh ${{ github.event.inputs.server_url }}
60+
61+ - name : Install dependencies
62+ shell : bash
63+ run : pnpm i
4164
4265 - name : Build
4366 run : pnpm build:client
@@ -59,10 +82,10 @@ jobs:
5982 env :
6083 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6184 with :
62- tagName : app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
63- releaseName : ' App v__VERSION__ '
85+ tagName : ${{ github.event.inputs.release_name }}-v${{ github.event.inputs.release_version }} # the action automatically replaces \_\_VERSION\_\_ with the app version
86+ releaseName : ' ${{ github.event.inputs.release_name }} v${{ github.event.inputs.release_version }} '
6487 releaseBody : ' See the assets to download this version and install.'
65- releaseDraft : true
66- prerelease : false
88+ releaseDraft : ${{ github.event.inputs.draft_release }}
89+ prerelease : ${{ github.event.inputs.is_pre_release }}
6790 projectPath : apps/desktop/src-tauri
68- distPath : apps/desktop/src
91+ distPath : apps/desktop/dist
0 commit comments