# GitLab-backup van de BlueGit tag-pipeline. Draait alleen op een tag. # Minecraft-versie: bestand minecraft-version in de repo-root. # Geen bump-commit, geen token-rotatie. workflow: rules: - if: $CI_COMMIT_TAG variables: GIT_DEPTH: "0" stages: - validate - package - release validate: stage: validate image: python:3 script: - bash scripts/ci/validate.sh package: stage: package image: python:3 needs: [validate] script: - bash scripts/ci/pack.sh "$CI_COMMIT_TAG" artifacts: paths: - build/out/*.zip expire_in: 30 days release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest needs: - job: package artifacts: true script: - | v="${CI_COMMIT_TAG#v}" mc="$(tr -d '[:space:]' < minecraft-version)" echo "Publishing GitLab Release for ${CI_COMMIT_TAG} (Death Firework ${v}, Minecraft ${mc})" release: name: "Death Firework $CI_COMMIT_TAG" tag_name: "$CI_COMMIT_TAG" description: "Release $CI_COMMIT_TAG of Death Firework for Minecraft 26.2." assets: links: []