mirror of
https://github.com/djhackersdev/bemanitools-supplement.git
synced 2026-03-21 17:34:13 -05:00
Add gitlab ci configuration file.
This commit is contained in:
parent
dc5c4d90d6
commit
d17570501c
34
.gitlab-ci.yml
Normal file
34
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
image: debian
|
||||
|
||||
stages:
|
||||
- build
|
||||
- release
|
||||
|
||||
build:
|
||||
stage: build
|
||||
before_script:
|
||||
- apt-get update && apt-get -qq install git make zip > /dev/null
|
||||
script:
|
||||
- make
|
||||
artifacts:
|
||||
name: "$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME"
|
||||
paths:
|
||||
- build
|
||||
|
||||
release:
|
||||
stage: release
|
||||
variables:
|
||||
GIT_STRATEGY: none
|
||||
dependencies:
|
||||
- build
|
||||
before_script:
|
||||
- apt-get update && apt-get -qq install zip > /dev/null
|
||||
script:
|
||||
- mv build/bemanitools-supplements.zip ./bemanitools-supplements.zip
|
||||
- find . -mindepth 1 ! -regex '^./bemanitools-supplements.zip' -delete
|
||||
- unzip bemanitools-supplements.zip
|
||||
- rm bemanitools-supplements.zip
|
||||
artifacts:
|
||||
name: "$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME"
|
||||
paths:
|
||||
- ./*
|
||||
Loading…
Reference in New Issue
Block a user