diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 104d94901..8ca97040f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -293,6 +293,29 @@ parse changelog: expire_in: "1 day" retry: 2 interruptible: true +parse test changelog: + stage: prepare release + needs: + - job: node dependencies + artifacts: true + rules: *test-release-rules + before_script: *nix-before + script: + - xzcat node-dependencies.nar.xz | nix-store --import + - source .gitlab-ci/construct-flake-url.sh + - nix -L run "${FLAKE}#jqChangelogJson" -- -r '.versions[0].version' > .current-version + - nix -L run "${FLAKE}#jqChangelogJson" -- -r '.versions[0].body' > .current-changelog.md + - echo "VERSION=$(cat .current-version)" >> build.env + artifacts: + reports: + dotenv: build.env + paths: + - .current-version + - .current-changelog.md + name: "changelog-${CI_COMMIT_SHORT_SHA}" + expire_in: "1 day" + retry: 2 + interruptible: true upload container: variables: @@ -342,7 +365,7 @@ upload test container: artifacts: false - job: test container artifacts: true - - job: parse changelog + - job: parse test changelog artifacts: true - job: check # sanity artifacts: false @@ -381,5 +404,5 @@ test release: needs: - job: check # sanity artifacts: false - - job: parse changelog + - job: parse test changelog artifacts: true