File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,26 @@ jobs:
140
140
fetch-depth : 0
141
141
submodules : recursive
142
142
143
+ - name : Setup CI Bot
144
+ if : github.event_name == 'workflow_dispatch'
145
+ working-directory : ./lite
146
+ run : |
147
+ git config user.name "The OpenList Bot"
148
+ git config user.email "[email protected] "
149
+
150
+ - name : Update package.json and commit
151
+ if : github.event_name == 'workflow_dispatch'
152
+ working-directory : ./lite
153
+ run : |
154
+ jq --arg version "${{ steps.semver.outputs.version }}" '.version = $version' package.json > package.json.tmp && mv package.json.tmp package.json
155
+ git add package.json
156
+ git commit -S -m "chore: release v${{ steps.semver.outputs.version }}" --no-verify
157
+ git push
158
+
143
159
- name : Build Lite Release
144
160
run : |
161
+ rm -rf .git
162
+ cp -r ../.git .git
145
163
chmod +x build.sh
146
164
./build.sh --release --compress --lite
147
165
working-directory : ./lite
@@ -170,7 +188,7 @@ jobs:
170
188
rm -f lite/dist/openlist-frontend-dist-lite-v*.tar.gz
171
189
# Copy the lite version
172
190
mkdir dist/lite
173
- cp lite/dist/* dist/lite/
191
+ cp -r lite/dist/. dist/lite/
174
192
175
193
if ! jq -e '.name and .version' package.json > /dev/null; then
176
194
echo "Error: Invalid package.json"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @openlist-frontend/openlist-frontend" ,
3
- "version" : " 4.0.4 " ,
3
+ "version" : " 4.0.5 " ,
4
4
"author" : {
5
5
"name" : " The OpenList Projects Contributors" ,
6
6
"url" : " https://github.com/OpenListTeam"
You can’t perform that action at this time.
0 commit comments