43 lines
1017 B
YAML
43 lines
1017 B
YAML
stages:
|
|
- prepare # List of stages for jobs, and their order of execution
|
|
- release
|
|
|
|
image: python:3.10
|
|
|
|
|
|
prepare_job:
|
|
stage: prepare
|
|
script:
|
|
- 'pip install requests'
|
|
- 'git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gl.beaconborn.ru/bacon/translation-generator.git'
|
|
- 'echo $$CI_PROJECT_DIR'
|
|
- 'python3 translation-generator/main.py $CI_PROJECT_DIR'
|
|
- 'ls -al'
|
|
- cat test.txt
|
|
|
|
|
|
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:
|
|
- testing
|
|
- ^tags
|
|
changes:
|
|
- data/**/*
|
|
- modinfo.lua
|
|
- thumb.png
|
|
- test.txt
|
|
|
|
script:
|
|
- echo "Release WPE 2.0_$CI_COMMIT_SHORT_SHA branch $CI_COMMIT_BRANCH"
|
|
|
|
release:
|
|
tag_name: v2.0.$CI_PIPELINE_IID
|
|
name: 'WPE 2.0_$CI_COMMIT_SHORT_SHA'
|
|
description: '$CI_COMMIT_MESSAGE' |