Commit 25a17ca1 authored by erwan's avatar erwan
Browse files

ci: use a semantic-release that works with gitlab 14.0

parent 7224b681
Pipeline #71223 passed with stages
in 5 minutes and 33 seconds
......@@ -58,12 +58,14 @@ test_opam_test:
- lv6 -help
allow_failure: true
# automating version numbering
release:
image: node:12-buster-slim
stage: release
before_script:
- yarn install --frozen-lockfile
image: node:12
- apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
- npm install -g semantic-release @semantic-release/gitlab
script:
- semantic-release
only:
- master
script:
- $(yarn bin)/semantic-delivery-gitlab --preset eslint --token ${GITLAB_AUTH_TOKEN}
stage: release
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/gitlab", {
"gitlabUrl": "https://gricad-gitlab.univ-grenoble-alpes.fr",
"assets": [
{"path": "dist/asset.min.css", "label": "CSS distribution"},
{"path": "dist/asset.min.js", "label": "JS distribution"}
]
}],
]
}
......@@ -2,7 +2,7 @@
SHA:=$(shell git log -1 --pretty=format:"%h" || echo "opam")
BRANCH:=$(shell git branch | grep "*" | cut -d ' ' -f 2 || basename `pwd` | echo "opam")
VERSION=$(shell git describe --tags || basename `pwd` | cut -d '.' -f2-4)
VERSION=$(shell git describe --tags --abbrev=0 || basename `pwd` | cut -d '.' -f2-4)
gen_version:
rm -f lib/lv6version.ml
......
{
"name": "lustre",
"version": "6.100.0",
"description": "The Lustre V6 Verimag compiler",
"main": "index.js",
"scripts": {
......@@ -15,8 +14,8 @@
"reactive programs"
],
"author": "Erwan Jahier",
"license": "CeCILL",
"license": "CECILL-2.1",
"devDependencies": {
"@hutson/semantic-delivery-gitlab": "^9.1.0"
"semantic-release": "^17.4.4"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment