diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d373cc..d3f4644 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,19 @@ +include: + - component: "gitlab.gnome.org/GNOME/citemplates/release-service@master" + inputs: + job-stage: "release" + dist-job-name: "build-release-tarball" + tarball-artifact-path: "${TARBALL_ARTIFACT_PATH}" + stages: - build +- release - pages +variables: + MESON_BUILD_DIR: "_build" + TARBALL_ARTIFACT_PATH: "${MESON_BUILD_DIR}/meson-dist/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.xz" + build: image: registry.gitlab.gnome.org/gnome/blueprint-compiler stage: build @@ -45,6 +57,20 @@ fuzz: - corpus - crashes +build-release-tarball: + stage: build + image: registry.gitlab.gnome.org/gnome/blueprint-compiler + only: + - tags + script: + - meson setup "${MESON_BUILD_DIR}" + - xvfb-run meson dist -C "${MESON_BUILD_DIR}" --include-subprojects + artifacts: + name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" + when: "always" + paths: + - "${TARBALL_ARTIFACT_PATH}" + pages: stage: pages dependencies: