Update .gitlab-ci.yml file
This commit is contained in:
@@ -1,41 +1,36 @@
|
|||||||
stages:
|
stages:
|
||||||
- prepare # List of stages for jobs, and their order of execution
|
# - prepare # List of stages for jobs, and their order of execution
|
||||||
- release
|
- release
|
||||||
|
|
||||||
|
|
||||||
|
.pre:
|
||||||
image: python:3.10
|
image: python:3.10
|
||||||
|
# stage: prepare
|
||||||
|
|
||||||
prepare_job:
|
|
||||||
stage: prepare
|
|
||||||
script:
|
script:
|
||||||
- 'pip install requests'
|
- 'pip install requests'
|
||||||
- 'git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gl.beaconborn.ru/bacon/translation-generator.git'
|
- 'git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gl.beaconborn.ru/bacon/translation-generator.git'
|
||||||
- 'python3 translation-generator/main.py $CI_PROJECT_DIR'
|
- 'python3 translation-generator/main.py $CI_PROJECT_DIR'
|
||||||
|
|
||||||
|
# artifacts:
|
||||||
artifacts:
|
# paths:
|
||||||
paths:
|
# - 'ru.po'
|
||||||
- 'ru.po'
|
|
||||||
|
|
||||||
|
|
||||||
release_job:
|
release_job:
|
||||||
needs:
|
# needs: .prepare
|
||||||
- job: prepare_job
|
|
||||||
artifacts: true
|
|
||||||
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
|
||||||
|
|
||||||
only:
|
rules:
|
||||||
# - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
# - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
||||||
refs:
|
# refs:
|
||||||
- testing
|
# - testing
|
||||||
- ^tags
|
# - ^tags
|
||||||
changes:
|
- changes:
|
||||||
- data/**/*
|
- data/**/*
|
||||||
- modinfo.lua
|
- modinfo.lua
|
||||||
- thumb.png
|
- thumb.png
|
||||||
- test.txt
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- echo "Release WPE 2.0_$CI_COMMIT_SHORT_SHA branch $CI_COMMIT_BRANCH"
|
- echo "Release WPE 2.0_$CI_COMMIT_SHORT_SHA branch $CI_COMMIT_BRANCH"
|
||||||
|
|||||||
Reference in New Issue
Block a user