ecload/.gitlab-ci.yml

21 lines
369 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" https://$CI_API_V4_URL/$CI_PROJECT_ID/releases
artifacts:
paths:
- dist/*.tar.gz
only:
- tags