Update .gitlab-ci.yml file

This commit is contained in:
xfy xfy
2023-05-11 09:34:52 +00:00
parent bd60a2b7f9
commit 4ad81b4aff

View File

@ -82,16 +82,9 @@ release_job:
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
- echo "running release_job"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: "$CI_COMMIT_TAG"
description: "$CI_COMMIT_TAG"
assets:
links:
- name: "rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG"
url: "https://git.rua.plus/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/cw/-/jobs/${CI_JOB_ID}/artifacts/file/public/rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG"
- name: "rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG"
url: "https://git.rua.plus/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/cw/-/jobs/${CI_JOB_ID}/artifacts/file/public/rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG"
- name: "ua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe"
url: "https://git.rua.plus/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/cw/-/jobs/${CI_JOB_ID}/artifacts/file/public/ua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe"
- >
release-cli create --name release-branch-$CI_JOB_ID --description release-branch-$CI_COMMIT_REF_NAME-$CI_JOB_ID
--tag-name job-$CI_JOB_ID --ref $CI_COMMIT_SHA
--assets-link '{"name":"rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG","url":"https://git.rua.plus/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/cw/-/jobs/${CI_JOB_ID}/artifacts/file/public/rua-list-x86_64-unknown-linux-gnu-$CI_COMMIT_TAG","link_type":"other","filepath":"xzy"}'
--assets-link '{"name":"rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG","url":"https://git.rua.plus/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/cw/-/jobs/${CI_JOB_ID}/artifacts/file/public/rua-list-x86_64-unknown-linux-musl-$CI_COMMIT_TAG","link_type":"other","filepath":"xzy"}'
--assets-link '{"name":"rua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe","url":"https://git.rua.plus/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/cw/-/jobs/${CI_JOB_ID}/artifacts/file/public/ua-list-x86_64-pc-windows-gnu-$CI_COMMIT_TAG.exe","link_type":"other","filepath":"xzy"}'