Commit 2bc5ee25 authored by nanahira's avatar nanahira

new ci

parent 5a1303c2
......@@ -15,3 +15,4 @@
/.vs
/.vscode
/sound
/update/*.txt
stages:
- stage1
- stage2
- prepare
- deploy
variables:
GIT_DEPTH: "1"
redtext:
stage: stage1
stage: prepare
dependencies: []
tags:
- linux
......@@ -27,7 +27,7 @@ redtext:
- dist/
deploy_to_ygopro_server:
stage: stage1
stage: prepare
dependencies: []
tags:
- linux
......@@ -42,26 +42,55 @@ deploy_to_ygopro_server:
only:
- master
hash:
stage: stage1
pack:
stage: prepare
dependencies: []
tags:
- linux
image: mono
script:
- apt update && apt -y install p7zip-full wget
- mkdir -p dist/archive dist/contents
- git clone --depth=1 https://code.mycard.moe/alstroemeria-silentlove/ygopro-222DIY-sound sound
- wget -O update/filelist.txt https://cdn01.moecube.com/ygopro-222DIY/contents/filelist.txt || true
- wget -O dist/archive/ygopro-222DIY-data.7z https://cdn01.moecube.com/ygopro-222DIY/archive/ygopro-222DIY-data.7z || true
- wget -O dist/archive/ygopro-222DIY-sound.7z https://cdn01.moecube.com/ygopro-222DIY/archive/ygopro-222DIY-sound.7z || true
- rm -rf .*.yml .git*
- cd update
- ./update-server.sh
- cd ..
- mkdir -p dist/update
- mv update/*.txt dist/update/
- 7z a -mx9 dist/archive/ygopro-222DIY-data.7z expansions update ygopro.exe
- 7z a -mx9 dist/archive/ygopro-222DIY-sound.7z sound
- rsync -avz --exclude=.*.yml --exclude=.git* --exclude=dist ./ dist/contents
artifacts:
paths:
- dist/
only:
- master
cut_pics:
stage: prepare
dependencies: []
tags:
- linux
script:
- apt update && apt -y install imagemagick
- mkdir -p dist/pics/thumbnail
- cd expnasions/pics
- ls -1 *.jpg | xargs -P $(nproc) -I {} convert {} -resize 177x254! ../../dist/pics/{}
- ls -1 *.jpg | xargs -P $(nproc) -I {} convert {} -resize 44x64! ../../dist/pics/thumbnail/{}
artifacts:
paths:
- dist/
only:
- master
upload_to_minio:
stage: stage2
stage: deploy
dependencies:
- redtext
- pack
- cut_pics
tags:
- linux
image: python
......
# Delete List (Codepage is UTF-8, please use TAB to seperate entries, Use Relative Address.)
\ No newline at end of file
This diff is collapsed.
# Rename List (Codepage is UTF-8, please use TAB to seperate entries, Use Relative Address.)
# An example of renaming a file from 123456.jpg to 456789.jpg
# pics/123456.jpg pics/456789.jpg
\ No newline at end of file
......@@ -7,7 +7,7 @@
<!-- access these values via the property:
System.Configuration.ConfigurationManager.AppSettings[key]
-->
<add key="url" value="https://koishi.pro/ygopro-222DIY/" />
<add key="url" value="https://cdn01.moecube.com/ygopro-222DIY/contents/" />
<!-- game save path -->
<add key="path" value="..\" />
<!-- use proxy -->
......
2020/6/10 20:57:50
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment