Commit d5f65086 authored by nanahira's avatar nanahira

ci

parent 4652b69c
stages: stages:
- build - build
- pack
- deploy - deploy
variables: variables:
...@@ -10,17 +11,25 @@ build_dex: ...@@ -10,17 +11,25 @@ build_dex:
dependencies: [] dependencies: []
tags: tags:
- vs - vs
only:
- master
script: script:
- cmd /c nuget restore - 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 - 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
artifacts:
paths:
- output
pack:
stage: pack
dependencies:
- build_dex
tags:
- linux
script:
- mkdir -p dist/releases - mkdir -p dist/releases
- cd output - cd output
- 7z a -mx9 ../dist/releases/DataEditorX-4.0.0.0.zip ./* - 7z a -mx9 ../dist/releases/DataEditorX-4.0.0.0.zip ./*
- cd .. - cd ..
- copy DataEditorX/readme.txt dist/version.txt - cp DataEditorX/readme.txt dist/version.txt
artifacts: artifacts:
paths: paths:
- dist/ - dist/
...@@ -31,9 +40,7 @@ upload_to_minio: ...@@ -31,9 +40,7 @@ upload_to_minio:
- build_dex - build_dex
tags: tags:
- linux - linux
image: python
script: 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 - aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/DataEditorX
only: only:
- tags - 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