-
Notifications
You must be signed in to change notification settings - Fork 14
84 lines (74 loc) · 2.31 KB
/
Copy pathlinux.yml
File metadata and controls
84 lines (74 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Licensed under the Apache License v. 2 (the "License")
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0.html
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Copyright (C) 2025-2025 xqyjlj<xqyjlj@126.com>
#
# @author xqyjlj
# @file linux.yml
#
# Change Logs:
# Date Author Notes
# ------------ ---------- -----------------------------------------------
# 2025-11-13 xqyjlj initial version
#
name: linux
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
name: ⬆️ release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
env:
CI_PROJECT_DIR: ${{ github.workspace }}
GITHUB_CSPLINK_DEVELOPER_TOKEN: ${{ github.token }}
steps:
- name: ⬇️ checkout csp
uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 1
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v4
- name: 📦 Setup node
uses: actions/setup-node@v6
with:
node-version: 22
- name: 📦 setup python
uses: actions/setup-python@v6
with:
python-version: 3.10.11
- name: 👷 Install
shell: bash
run: |
pnpm install --frozen-lockfile --no-verify-store-integrity
pnpm server:install
- name: 🔨 Build
shell: bash
run: |
pnpm release
. tools/release.sh linux ${{ github.ref_name }}
- name: ⬆️ create release
uses: softprops/action-gh-release@v2
with:
name: csp ${{ github.ref_name }}
draft: true
prerelease: true
token: ${{ secrets.RELEASE_TOKEN }}
files: |
csp-linux-setup-${{ github.ref_name }}.AppImage
csp-linux-portable-${{ github.ref_name }}.tar.gz
csp-linux-server-${{ github.ref_name }}.tar.gz