Files
weapon-project-extended/.gitlab-ci.yml
2023-08-28 17:39:25 +00:00

54 lines
1.0 KiB
YAML

stages:
- prepare # List of stages for jobs, and their order of execution
- release
variables:
PROJECT_TOKEN: 'glpat--RRjMz6YUc8c9ssHiaQC'
#
image: python:3.10
.pre:
stage: .pre
script:
- echo "testing"
prepare_job:
stage: prepare
script:
- 'pip install requests'
- 'git clone https://$CI_PROJECT_NAME:$PROJECT_TOKEN@$CI_SERVER_HOST/translation-generator.git'
- 'ls -al'
release_job:
needs:
- prepare_job
stage: release # It only runs when *both* jobs in the test stage complete successfully.
image: registry.gitlab.com/gitlab-org/release-cli:latest
only:
# - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
refs:
- test
- ^tags
changes:
- ^README.md
- ^CHANGELOG
- ^.gitattribute
- ^.gitignore
- ^.gitlab-ci.yml
- data/**/*
- modinfo.lua
- thumb.png
script:
- echo "Release WPE 2.0_$CI_COMMIT_SHORT_SHA"
release:
tag_name: v2.0.$CI_PIPELINE_IID
name: 'WPE 2.0_$CI_COMMIT_SHORT_SHA'
description: '$CI_COMMIT_MESSAGE'