Reenable the new CI version system

parent de376a97
Pipeline #29517790 passed with stages
in 4 minutes and 29 seconds
......@@ -5,7 +5,11 @@ stages:
- package
before_script:
- export LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null)
- export PREVIOUS_TAGS=$(git tag --list --format '%(objectname)' --merged origin/master --no-contains HEAD)
- export PREVIOUS_TAGS+=" $(git tag --list --format '%(objectname)' --points-at HEAD)"
- export LAST_TAG=$([[ -n "$PREVIOUS_TAGS" ]] && git merge-base --independent $PREVIOUS_TAGS)
- export VERSION=$([[ -n "$LAST_TAG" ]] && git tag --points-at $LAST_TAG)
- export VERSION=${VERSION:-2.0.0}
- export PATCH=$(git rev-list ${LAST_TAG:+$LAST_TAG..}HEAD | wc -l)
- yarn
......@@ -36,7 +40,7 @@ zip:
xpi-beta:
stage: package
script:
- yarn run manifest:specify -firefox -version $PATCH
- yarn run manifest:specify -firefox -checkver $VERSION -patch $PATCH
- web-ext sign --source-dir=dist --api-key="$SIGN_FF_API_KEY" --api-secret="$SIGN_FF_API_SECRET" --artifacts-dir=dist-zip
artifacts:
paths:
......@@ -54,7 +58,7 @@ xpi-beta:
xpi-unsigned:
stage: package
script:
- yarn run manifest:specify -firefox
- yarn run manifest:specify -firefox -checkver $VERSION
- yarn run build-zip
# do not sign file, has to be manually updated to Mozilla Addons, just prepare it for signing
artifacts:
......@@ -69,7 +73,7 @@ xpi-unsigned:
crx-beta:
stage: package
script:
- yarn run manifest:specify -chrome -version $PATCH
- yarn run manifest:specify -chrome -checkver $VERSION -patch $PATCH
- yarn run build-zip
artifacts:
paths:
......@@ -86,7 +90,7 @@ crx-beta:
crx:
stage: package
script:
- yarn run manifest:specify -chrome
- yarn run manifest:specify -chrome -checkver $VERSION
- yarn run build-zip
artifacts:
paths:
......
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