EpicEnchants/.gitlab-ci.yml

22 lines
555 B
YAML
Raw Normal View History

2019-04-05 16:22:11 +02:00
stages:
2019-04-11 10:49:41 +02:00
- build
2019-04-05 16:22:11 +02:00
variables:
2019-04-11 10:46:41 +02:00
name: "EpicEnchants"
path: "/builds/$CI_PROJECT_PATH"
2019-08-16 00:10:48 +02:00
version: "1.0.7"
2019-04-05 16:22:11 +02:00
build:
stage: build
image: maven:3.5.3-jdk-8
script:
2019-04-11 09:50:54 +02:00
- find $path/ -type f -name "*.xml" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g
- find $path/ -type f -name "*.yml" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g
2019-04-05 16:22:11 +02:00
- mvn clean package
- find $path/ -depth -path '*original*' -delete
2019-04-11 10:36:03 +02:00
- mv $path/target/*.jar $path/
2019-04-05 16:22:11 +02:00
artifacts:
name: $name-$version
paths:
2019-04-11 10:46:41 +02:00
- "$path/*.jar"