Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ runs:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install dependencies
shell: bash
run: pnpm i

- name: Restore Turborepo Cache
uses: actions/cache@v3
with:
Expand Down
47 changes: 35 additions & 12 deletions .github/workflows/build-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,31 @@ name: Build and Release Desktop Client
on:
workflow_dispatch:
inputs:
serverip:
default: '0.0.0.0:4000'
server_url:
default: 'http://127.0.0.1:4000'
required: false
type: string
description: 'Server IP for RCS CTF API Server'
description: 'Server URL (with port) for RCS CTF API Server'
release_version:
default: '0.0.0-dev'
required: false
type: string
description: 'Release version for the client'
release_name:
default: 'local-development'
required: false
type: string
description: 'Release name for the client'
is_pre_release:
default: true
required: false
type: boolean
description: 'Is this a pre-release?'
draft_release:
default: true
required: false
type: boolean
description: 'Do you want to draft?'

permissions:
issues: write
Expand All @@ -23,7 +43,7 @@ jobs:
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]

runs-on: ubuntu-latest
runs-on: ${{ matrix.platform }}

steps:
- name: Check out code
Expand All @@ -33,11 +53,14 @@ jobs:

- name: Setup Environment
uses: ./.github/actions/setup

- name: Copy before build
run: |
cd packages/deployer-url
node entrypoint.js ${{ github.event.inputs.serverip }}
bash bootstrap.sh ${{ github.event.inputs.server_url }}

- name: Install dependencies
shell: bash
run: pnpm i

- name: Build
run: pnpm build:client
Expand All @@ -59,10 +82,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'App v__VERSION__'
tagName: ${{ github.event.inputs.release_name }}-v${{ github.event.inputs.release_version }} # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: '${{ github.event.inputs.release_name }} v${{ github.event.inputs.release_version }}'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
releaseDraft: ${{ github.event.inputs.draft_release }}
prerelease: ${{ github.event.inputs.is_pre_release }}
projectPath: apps/desktop/src-tauri
distPath: apps/desktop/src
distPath: apps/desktop/dist
8 changes: 8 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,13 @@ jobs:
- name: Setup Environment
uses: ./.github/actions/setup

- name: Run before install
run: |
bash bootstrap.sh http://127.0.0.1:4000

- name: Install dependencies
shell: bash
run: pnpm i

- name: Install Dependencies
run: pnpm build
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ yarn-error.log*

# Keys
packages/api/keys/jwtRS256.key
packages/api/keys/jwtRS256.key.pub
packages/api/keys/jwtRS256.key.pub
/target
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
{
"mode": "auto"
}
],
"rust-analyzer.linkedProjects": [
"./apps/desktop/src-tauri/Cargo.toml",
]
}
Loading