Files
sdb2-extension-chrome/.gitlab-ci.yml
JSC f12913024b
All checks were successful
Create Release / build-and-release (push) Successful in 7s
Refactor release description for clarity and consistency in SDB Audio Extractor
2025-10-05 17:59:05 +02:00

52 lines
1.3 KiB
YAML

stages:
- build
- release
build-extension:
stage: build
image: ubuntu:latest
tags:
- docker
rules:
- if: $CI_COMMIT_TAG =~ /^v.*/
before_script:
- apt-get update && apt-get install -y zip
script:
- |
zip -r sdb-audio-extractor-${CI_COMMIT_TAG}.zip \
manifest.json \
popup.html \
popup.js \
options.html \
options.js \
content.js \
background.js \
icon16.png \
icon48.png \
icon128.png \
README.md
artifacts:
paths:
- sdb-audio-extractor-${CI_COMMIT_TAG}.zip
expire_in: 1 week
create-release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
tags:
- docker
rules:
- if: $CI_COMMIT_TAG =~ /^v.*/
dependencies:
- build-extension
script:
- echo "Creating release for $CI_COMMIT_TAG"
release:
tag_name: '$CI_COMMIT_TAG'
name: 'Release $CI_COMMIT_TAG'
description: 'Download the zip file below, open Chrome at chrome://extensions/, enable Developer mode, and drag and drop the zip file onto the extensions page.'
assets:
links:
- name: 'sdb-audio-extractor-$CI_COMMIT_TAG.zip'
url: '$CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_TAG/raw/sdb-audio-extractor-$CI_COMMIT_TAG.zip?job=build-extension'