diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c468848..2a3cd9c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ variables: stages: - build + - release build: stage: build @@ -25,11 +26,28 @@ build: artifacts: name: wfrp4e-actor-sheet-print when: on_success - expose_as: '$CI_COMMIT_BRANCH' paths: - dist/wfrp4e-actor-sheet-print.zip + - dist/module.json expire_in: never only: - tags - master +release: + stage: release + image: registry.gitlab.com/gitlab-org/release-cli:latest + script: + - echo 'Running the release job.' + release: + tag_name: $CI_COMMIT_TAG + name: 'Release $CI_COMMIT_TAG' + description: './CHANGELOG.md' + assets: + links: + - name: 'content' + url: './dist/wfrp4e-actor-sheet-print.zip' + - name: 'manifest' + url: './dist/module.json' + only: + - tags