21 lines
361 B
YAML
21 lines
361 B
YAML
image: golang:latest
|
|
variables:
|
|
TOKEN_HEADER: "PRIVATE-TOKEN: $CI_BUILD_TOKEN"
|
|
|
|
build:
|
|
script:
|
|
- make
|
|
dependencies: []
|
|
except:
|
|
- tags
|
|
|
|
release:
|
|
script:
|
|
- make
|
|
- curl -H "$TOKEN_HEADER" $CI_API_V4_URL/$CI_PROJECT_ID/releases
|
|
artifacts:
|
|
paths:
|
|
- dist/*.tar.gz
|
|
only:
|
|
- tags
|