mirror of
https://gitgud.io/AsmodeusRex/rjw-race-support.git
synced 2024-08-15 00:03:24 +00:00
Update .gitlab-ci.yml
This commit is contained in:
parent
037830c595
commit
8775f644f7
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ stages:
|
|||
|
||||
variables:
|
||||
PACKAGE_NAME: "${CI_PROJECT_ID}-${CI_COMMIT_TAG}"
|
||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/${CI_COMMIT_TAG}"
|
||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/release/${CI_COMMIT_TAG}"
|
||||
|
||||
build:
|
||||
image: "rust:latest"
|
||||
|
@ -27,7 +27,7 @@ upload:
|
|||
- if: $CI_COMMIT_TAG
|
||||
script:
|
||||
- |
|
||||
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file build.zip "${PACKAGE_REGISTRY_URL}/${PACKAGE_NAME}/"
|
||||
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file build.zip "${PACKAGE_REGISTRY_URL}/"
|
||||
|
||||
release:
|
||||
stage: release
|
||||
|
@ -37,4 +37,4 @@ release:
|
|||
script:
|
||||
- |
|
||||
release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \
|
||||
--assets-link "{\"name\":\"${PACKAGE_NAME}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${PACKAGE_NAME}/build.zip\"}"
|
||||
--assets-link "{\"name\":\"${PACKAGE_NAME}\",\"url\":\"${PACKAGE_REGISTRY_URL}/build.zip\"}"
|
Loading…
Reference in a new issue