Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
official
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
official
Commits
08e1cdc4
Commit
08e1cdc4
authored
Jun 24, 2021
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: compress
parent
051f2904
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
commit.sh
utils/commit.sh
+2
-2
No files found.
.gitlab-ci.yml
View file @
08e1cdc4
...
...
@@ -28,7 +28,7 @@ deploy:
-
master
script
:
-
yarn
-
sh utils/imageCompress.sh
#
- sh utils/imageCompress.sh
-
npm run export
-
rm -rf /home/gitlab-runner/deploy/official/out/
-
echo "预览页面已清除"
...
...
@@ -49,7 +49,7 @@ preview:
# - out
script
:
-
yarn
-
sh utils/imageCompress.sh
#
- sh utils/imageCompress.sh
-
npm run export
-
rm -r /home/gitlab-runner/deploy/official/out
-
cp -r out/ /home/gitlab-runner/deploy/official/
...
...
utils/commit.sh
View file @
08e1cdc4
git status
echo
"
`
git diff
--name-status
HEAD~20 HEAD
`
"
|
grep
^A |
grep
-E
"png|jpg|jpeg$"
|
awk
'{for(i=2;i<=NF;++i) printf $i ;printf "\n"}'
| xargs
-I
{}
utils/imageCompressHelper.sh
{}
if
test
-z
"
`
git status |
grep
'nothing to commit, working tree clean'
`
"
then
git stash
...
...
@@ -7,7 +7,7 @@ then
git stash pop
git add
-A
echo
'added'
git commit
-am
'自动文章合并'
git commit
-am
'自动文章合并
|| 图片自动压缩
'
echo
'commited'
git push git@git.gaorongvc.cn:lq/official.git
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment