Commit 4d253bfc authored by Huangnan's avatar Huangnan

update ci

parent 5f1a654a
......@@ -56,15 +56,15 @@ pack:
- sed -i '/mono-project.com/d' /etc/apt/sources.list /etc/apt/sources.list.d/*
- apt update && apt -y install p7zip-full wget git
- mkdir -p dist/archive dist/contents
- git log --pretty=%H --since=$LAST_UPDATE_DATE | xargs -I {} git diff-tree --no-commit-id --name-only --diff-filter=ACMR -r {} | sed "/sound\//d;/update\//d;/.yml/d" | sort | uniq | sed "s/^/'/g;s/\$/'/g" | xargs 7z -a -mx9 dist/archive/ygopro-FiNALE-DIY-update.zip || true
- git log --pretty=%H --since=$LAST_UPDATE_DATE | xargs -I {} git diff-tree --no-commit-id --name-only --diff-filter=ACMR -r {} | sed "/sound\//d;/update\//d;/.yml/d" | sort | uniq | sed "s/^/'/g;s/\$/'/g" | xargs 7z a -mx9 dist/archive/ygopro-FiNALE-DIY-update.zip || true
- git clone --depth=1 https://code.moenext.com/alstroemeria-silentlove/ygopro-222DIY-sound sound
- wget -O update/filelist.txt https://cdn01.moecube.com/ygopro-222DIY/contents/update/filelist.txt || rm -rf update/filelist.txt
- rm -rf .*.yml .git* sound/.git*
- cd update
- ./update-server.sh
- cd ..
- 7z -a -mx9 dist/archive/ygopro-FiNALE-DIY-cards.zip expansions update
- 7z -a -mx9 dist/archive/ygopro-FiNALE-DIY-sound.zip sound
- 7z a -mx9 dist/archive/ygopro-FiNALE-DIY-cards.zip expansions update
- 7z a -mx9 dist/archive/ygopro-FiNALE-DIY-sound.zip sound
- ls -1 | sed '/dist/d' | xargs -I {} mv {} dist/contents/
artifacts:
paths:
......
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