File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
env :
10
10
CARGO_TERM_COLOR : always
11
+ # Указываем версию прямо здесь
12
+ APP_VERSION : " 1.9.6"
11
13
12
14
jobs :
13
15
build_linux :
16
18
17
19
steps :
18
20
- uses : actions/checkout@v4
19
- - name : Get version
20
- id : version
21
- run : echo "version=$(cargo pkgid | cut -d'#' -f2)" >> $GITHUB_OUTPUT
21
+ - name : Update Cargo.toml version
22
+ run : |
23
+ sed -i 's/^version = .*/version = "${{ env.APP_VERSION }}"/' Cargo.toml
24
+ # Также обновляем версию в метаданных для Windows
25
+ sed -i 's/ProductVersion = .*/ProductVersion = "${{ env.APP_VERSION }}"/' Cargo.toml
22
26
- name : Build linux
23
27
run : cargo build --release
24
28
- name : Move binary
39
43
40
44
steps :
41
45
- uses : actions/checkout@v4
46
+ - name : Update Cargo.toml version
47
+ run : |
48
+ sed -i 's/^version = .*/version = "${{ env.APP_VERSION }}"/' Cargo.toml
49
+ sed -i 's/ProductVersion = .*/ProductVersion = "${{ env.APP_VERSION }}"/' Cargo.toml
42
50
- name : Build windows
43
51
run : cargo build --release
44
52
- name : Move binary
61
69
62
70
steps :
63
71
- uses : actions/checkout@v4
64
- - name : Get version
65
- id : version
66
- run : echo "version=$(cargo pkgid | cut -d'#' -f2)" >> $GITHUB_OUTPUT
67
72
- name : Download Linux artifacts
68
73
uses : actions/download-artifact@v4
69
74
with :
77
82
- name : Create Release
78
83
uses : softprops/action-gh-release@v2
79
84
with :
80
- tag_name : v${{ steps.version.outputs.version }}
81
- name : Cross Cleaner ${{ steps.version.outputs.version }}
85
+ tag_name : v${{ env.APP_VERSION }}
86
+ name : Cross Cleaner ${{ env.APP_VERSION }}
82
87
files : |
83
88
linux-binaries/Cross_Cleaner_CLI
84
89
linux-binaries/Cross_Cleaner_GUI
You can’t perform that action at this time.
0 commit comments