Commit 7781844e authored by 聖園ミカ's avatar 聖園ミカ 🐟

md

parent 845a1b77
...@@ -56,15 +56,15 @@ pack: ...@@ -56,15 +56,15 @@ pack:
- sed -i '/mono-project.com/d' /etc/apt/sources.list /etc/apt/sources.list.d/* - sed -i '/mono-project.com/d' /etc/apt/sources.list /etc/apt/sources.list.d/*
- apt update && apt -y install p7zip-full wget git - apt update && apt -y install p7zip-full wget git
- mkdir -p dist/archive dist/contents - 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-222DIY-update.7z || 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.7z || true
- git clone --depth=1 https://code.mycard.moe/alstroemeria-silentlove/ygopro-222DIY-sound sound - 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/update/filelist.txt || rm -rf update/filelist.txt - 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* - rm -rf .*.yml .git* sound/.git*
- cd update - cd update
- ./update-server.sh - ./update-server.sh
- cd .. - cd ..
- 7z a -mx9 dist/archive/ygopro-222DIY-data.7z expansions update - 7z a -mx9 dist/archive/ygopro-FiNALE-DIY-cards.7z expansions update
- 7z a -mx9 dist/archive/ygopro-222DIY-sound.7z sound - 7z a -mx9 dist/archive/ygopro-FiNALE-DIY-sound.7z sound
- ls -1 | sed '/dist/d' | xargs -I {} mv {} dist/contents/ - ls -1 | sed '/dist/d' | xargs -I {} mv {} dist/contents/
artifacts: artifacts:
paths: paths:
...@@ -82,8 +82,8 @@ upload_to_minio: ...@@ -82,8 +82,8 @@ upload_to_minio:
image: python image: python
script: script:
- pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli - pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli
- cp dist/archive/ygopro-222DIY-data.7z dist/archive/ygopro-222DIY-data-$CURRENT_UPDATE_DATE.7z - cp dist/archive/ygopro-FiNALE-DIY-cards.7z dist/archive/ygopro-FiNALE-DIY-cards-$CURRENT_UPDATE_DATE.7z
- cp dist/archive/ygopro-222DIY-update.7z dist/archive/ygopro-222DIY-update-$CURRENT_UPDATE_DATE.7z - cp dist/archive/ygopro-FiNALE-DIY-update.7z dist/archive/ygopro-FiNALE-DIY-update-$CURRENT_UPDATE_DATE.7z
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/ygopro-222DIY > /dev/null - aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/ygopro-222DIY > /dev/null
only: only:
- master - master
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