Commit a1339ad8 authored by nanahira's avatar nanahira

gitlab ci

parent 5c8631db
stages:
- build
- deploy
variables:
GIT_DEPTH: "1"
build_dex:
stage: build
dependencies: []
tags:
- linux
only:
- master
image: mono
script:
- ./ci/build.sh
artifacts:
paths:
- dist/
upload_to_minio:
stage: deploy
dependencies:
- build_dex
tags:
- linux
image: python
script:
- pip install -U awscli
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist s3://mycard/DataEditorX
only:
- master
......@@ -21,7 +21,7 @@
<!-- DataEditorX source code -->
<add key="sourceURL" value="https://github.com/purerosefallen/DataEditorX" />
<!-- DataEditorX update url-->
<add key="updateURL" value="https://cdn01.moecube.com/DataEditorX/readme.txt" />
<add key="updateURL" value="https://cdn01.moecube.com/DataEditorX/version.txt" />
<!-- delete,modify with card's files image script -->
<add key="opera_with_cards_file" value="true" />
<!-- open file in this.such as lua -->
......
#!/bin/bash
set -x
set -o errexit
DEX_VERSION=$(grep -oP '\[DataEditorX\](.+)\[DataEditorX\]' DataEditorX/readme.txt | sed 's/\[DataEditorX\]//g')
apt update
apt -y install p7zip-full
xbuild /p:Configuration=Release /p:TargetFrameworkVersion=v4.6 /p:OutDir=$PWD/output/
mkdir -p dist/releases
cd output
7z a -mx9 ../dist/releases/$DEX_VERSION.zip ./*
cd ..
cp -rf DataEditorX/readme.txt dist/version.txt
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