mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Keep the 'v' from the tag on the released .tar.gz
Gitlab doesn't support '#v' expansion for the links name and url: https://docs.gitlab.com/ee/ci/variables/where_variables_can_be_used.html https://docs.gitlab.com/ee/ci/variables/where_variables_can_be_used.html#gitlab-internal-variable-expansion-mechanism The current releases include a 'snowflake-.tar.gz' that gives a 404, because the link provided is missing the tag part. Let's keep it simple and produce a tar.gz with the v in the name like snowflake-v2.6.0.tar.gz Closes: #40282
This commit is contained in:
parent
8104732114
commit
f73fe6ec00
1 changed files with 4 additions and 4 deletions
|
@ -177,12 +177,12 @@ generate_tarball:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
script:
|
script:
|
||||||
- go mod vendor
|
- go mod vendor
|
||||||
- tar czf ${CI_PROJECT_NAME}-${CI_COMMIT_TAG#v}.tar.gz --transform "s,^,${CI_PROJECT_NAME}-${CI_COMMIT_TAG#v}/," *
|
- tar czf ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz --transform "s,^,${CI_PROJECT_NAME}-${CI_COMMIT_TAG}/," *
|
||||||
after_script:
|
after_script:
|
||||||
- echo TAR_JOB_ID=$CI_JOB_ID >> generate_tarball.env
|
- echo TAR_JOB_ID=$CI_JOB_ID >> generate_tarball.env
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- ${CI_PROJECT_NAME}-${CI_COMMIT_TAG#v}.tar.gz
|
- ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz
|
||||||
reports:
|
reports:
|
||||||
dotenv: generate_tarball.env
|
dotenv: generate_tarball.env
|
||||||
|
|
||||||
|
@ -203,6 +203,6 @@ release-job:
|
||||||
ref: '$CI_COMMIT_TAG'
|
ref: '$CI_COMMIT_TAG'
|
||||||
assets:
|
assets:
|
||||||
links:
|
links:
|
||||||
- name: '${CI_PROJECT_NAME}-${CI_COMMIT_TAG#v}.tar.gz'
|
- name: '${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz'
|
||||||
url: '${CI_PROJECT_URL}/-/jobs/${TAR_JOB_ID}/artifacts/file/${CI_PROJECT_NAME}-${CI_COMMIT_TAG#v}.tar.gz'
|
url: '${CI_PROJECT_URL}/-/jobs/${TAR_JOB_ID}/artifacts/file/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue