Commit 3f6fbab8 authored by nanahira's avatar nanahira

update ci

parent fdf1c64c
......@@ -3,7 +3,7 @@
set UNITY_PATH="C:\Program Files\Unity\Editor\Unity.exe"
mkdir output
mkdir dist
mkdir KoishiPro2-src
%UNITY_PATH% -batchmode -nographics -silent-crashes -projectPath %cd% -logFile dist/build.log -executeMethod BuildHelper.Build -quit
if %errorlevel% neq 0 exit /b %errorlevel%
cat dist/build.log
......@@ -11,7 +11,5 @@ cat dist/build.log
bash -c "sed -i '/>UIStatusBarStyle</i\ <key>UIFileSharingEnabled</key>\n <true />\n <key>LSSupportsOpeningDocumentsInPlace</key>\n <true />' output/Info.plist"
cd output
7z a -mx9 ../dist/KoishiPro2-src.7z *
7z a -mx9 ../KoishiPro2-src/KoishiPro2-src.7z *
cd ..
aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist s3://mycard/koishipro2
stages:
- build
- deploy
variables:
GIT_DEPTH: "1"
......@@ -9,14 +10,26 @@ cache:
- Library/
- Temp/
ios:
unity:
stage: build
script: cmd /C .gitlab-ci.bat
artifacts:
paths:
- dist/
- KoishiPro2-src/
only:
- Android
tags:
- unity
upload_to_minio:
stage: deploy
dependencies:
- unity
tags:
- linux
image: python
script:
- pip install -U awscli
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete KoishiPro2-src s3://mycard/koishipro2
only:
- Android
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