mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 18:41:01 +00:00
Implement crate publishing on CI (#12768)
* implement crate publishing from CI * fix indentation * use resource_group for job exclusivity ensure that at most one instance of the publish-crates job is running at any given time to prevent race conditions * correct publish = false * Remove YAML anchors as GitLab's `extends:` doesn't need it * Temporarily force cache upload for the new jobs * Revert `RUSTY_CACHIER_FORCE_UPLOAD` * pin libp2p-tcp=0.37.0 for sc-telemetry * Revert "pin libp2p-tcp=0.37.0 for sc-telemetry" This reverts commit 29146bfad6c31e8cf0e2f17ad92a71bb81a373af. * always collect generated crates * increase timeout for publish-crates-template * Force upload the new job cache again * Revert "Force upload the new job cache again" This reverts commit 5a5feee1b2c51fdef768b25a76be4c3949ec1c99. * reformat * improve timeout explanation * s/usual/average Co-authored-by: Vladimir Istyufeev <vladimir@parity.io>
This commit is contained in:
committed by
GitHub
parent
3b9d781afc
commit
8751f88fc7
@@ -180,6 +180,25 @@ default:
|
||||
# this job runs only on nightly pipeline with the mentioned variable, against `master` branch
|
||||
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "nightly"
|
||||
|
||||
.crates-publishing-template:
|
||||
stage: test
|
||||
extends: .docker-env
|
||||
# collect artifacts even on failure so that we know how the crates were generated (they'll be
|
||||
# generated to the artifacts folder according to SPUB_TMP further down)
|
||||
artifacts:
|
||||
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
|
||||
when: always
|
||||
expire_in: 7 days
|
||||
paths:
|
||||
- artifacts/
|
||||
variables:
|
||||
CRATESIO_API: https://crates.io/api
|
||||
CRATESIO_CRATES_OWNER: parity-crate-owner
|
||||
GH_API: https://api.github.com
|
||||
REPO: substrate
|
||||
REPO_OWNER: paritytech
|
||||
SPUB_TMP: artifacts
|
||||
|
||||
#### stage: .pre
|
||||
|
||||
skip-if-draft:
|
||||
|
||||
Reference in New Issue
Block a user