25 lines
No EOL
749 B
YAML
25 lines
No EOL
749 B
YAML
image: repo.n64.cc:443/nosial/ncc:latest
|
|
|
|
stages:
|
|
- build
|
|
- publish
|
|
|
|
variables:
|
|
PACKAGE_NAME: $CI_COMMIT_REF_NAME
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- ncc build --config release --log-level debug -o "build/release/net.nosial.optslib.ncc"
|
|
artifacts:
|
|
paths:
|
|
- "build/release/net.nosial.optslib.ncc"
|
|
|
|
publish:
|
|
stage: publish
|
|
before_script:
|
|
- 'if [ "$CI_COMMIT_REF_NAME" == "master" ]; then PACKAGE_NAME="latest"; fi'
|
|
script:
|
|
- |
|
|
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/release/net.nosial.optslib.ncc \
|
|
"https://$CI_SERVER_HOST/api/v4/projects/$CI_PROJECT_ID/packages/generic/${PACKAGE_NAME}/${CI_COMMIT_SHA}/net.nosial.optslib.ncc" |