Commit e4072b71 authored by JoyJ's avatar JoyJ

Merge branch 'Avalon' of https://code.mycard.moe/nanahira/DataEditorX into Avalon

parents 02399a32 05786792
Pipeline #9334 passed with stages
in 1 minute and 33 seconds
stages:
- prepare
- build
- pack
- deploy
variables:
GIT_DEPTH: "1"
get_nuget:
stage: prepare
tags:
- linux
script:
- mkdir tools
- cd tools
- wget -O nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- cd ..
artifacts:
paths:
- tools
get_data:
stage: prepare
tags:
- linux
script:
- wget -O DataEditorX/data/constant.lua https://cdn02.moecube.com:444/koishipro/contents/script/constant.lua
- wget -O DataEditorX/data/strings.conf https://cdn02.moecube.com:444/koishipro/contents/strings.conf
artifacts:
paths:
- DataEditorX/data
build_dex:
stage: build
dependencies: []
dependencies:
- get_nuget
- get_data
tags:
- vs
only:
- master
script:
- cmd /c nuget restore
- cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" DataEditorX.sln /p:Configuration=Release /p:Platform="Any CPU" /p:OutDir=$PWD/output/ /p:TargetFrameworkVersion=v4.6
- '.\tools\nuget.exe restore'
- cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" DataEditorX.sln /p:Configuration=Release /p:Platform="Any CPU" /p:OutDir=..\output /p:TargetFrameworkVersion=v4.6'
artifacts:
paths:
- output
pack:
stage: pack
dependencies:
- build_dex
tags:
- linux
script:
- DEX_VERSION=$(grep -oP '\[DataEditorX\](.+)\[DataEditorX\]' DataEditorX/readme.txt | sed 's/\[DataEditorX\]//g')
- mkdir -p dist/releases
- cd output
- 7z a -mx9 ../dist/releases/DataEditorX-4.0.0.0.zip ./*
- 7z a -mx9 ../dist/releases/DataEditorX-$DEX_VERSION.zip ./*
- cd ..
- copy DataEditorX/readme.txt dist/version.txt
- cp DataEditorX/readme.txt dist/version.txt
artifacts:
paths:
- dist/
......@@ -28,12 +65,10 @@ build_dex:
upload_to_minio:
stage: deploy
dependencies:
- build_dex
- pack
tags:
- linux
image: python
script:
- pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/DataEditorX
only:
- tags
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