Skip to content

Commit b44433a

Browse files
committed
perf: build upload
1 parent 1d9f780 commit b44433a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ env:
2727
jobs:
2828
pre-build:
2929
name: pre-build go client
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-22.04
3131
outputs:
3232
go-client-artifacts: ${{ steps.upload-go-client.outputs.artifact-name }}
3333

@@ -57,6 +57,7 @@ jobs:
5757
needs: pre-build
5858
permissions:
5959
contents: write
60+
releases: write
6061
strategy:
6162
fail-fast: false
6263
matrix:
@@ -101,10 +102,10 @@ jobs:
101102
targets: ${{ matrix.os == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
102103

103104
- name: Install system dependencies (Ubuntu)
104-
if: matrix.os == 'ubuntu-latest'
105+
if: matrix.os == 'ubuntu-22.04'
105106
run: |
106107
sudo apt-get update
107-
sudo apt-get install -y libwebkit2gtk-4.1-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf
108+
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
108109
109110
- name: Install frontend dependencies
110111
run: pnpm install
@@ -119,13 +120,16 @@ jobs:
119120
releaseName: "JumpServer Client v__VERSION__"
120121
releaseBody: "See the assets to download this version and install."
121122
releaseDraft: true
122-
prerelease: false
123+
prerelease: ${{ contains(github.ref_name, 'rc') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') }}
123124

124125
release:
125126
name: create latest.json
126-
runs-on: ubuntu-latest
127+
runs-on: ubuntu-22.04
127128
needs: [pre-build, build]
128129
if: startsWith(github.ref, 'refs/tags/')
130+
permissions:
131+
contents: write
132+
releases: write
129133

130134
steps:
131135
- name: Check out git repository

0 commit comments

Comments
 (0)