Skip to content
Snippets Groups Projects
Commit d6c6dff4 authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Improve comments

parent 4a77dcd7
No related branches found
No related tags found
No related merge requests found
...@@ -48,10 +48,6 @@ build-job: ...@@ -48,10 +48,6 @@ build-job:
script: script:
- make deps-build-whl - make deps-build-whl
- make build-whl - make build-whl
- ls dist
#- git clone https://gitlab-ci-token:$SIGNER_TOKEN@$SIGNER_REPO
#- bash signer/init_keyring.sh
#- python signer/signer.py --verbose $GPG_KEY "$PWD/dist"
artifacts: artifacts:
paths: paths:
- dist - dist
...@@ -85,12 +81,11 @@ sphinx-metadata-job: ...@@ -85,12 +81,11 @@ sphinx-metadata-job:
twine-job: twine-job:
stage: deploy stage: deploy
script: script:
- printf "[pypi]\nusername = __token__\npassword = $TWINE_TOKEN\n" > .pypirc - printf "[pypi]\nusername = __token__\npassword = $TWINE_TOKEN\n" > .pypirc # Set credentials for pypi.org
- mkdir dist2 - mkdir dist2
- cp dist/*.whl dist/*.tar.gz dist2/. - cp dist/*.whl dist/*.tar.gz dist2/. # Get only .whl and .tar.gz files
#- twine upload 'dist2/*' --skip-existing --config-file .pypirc #- twine upload 'dist2/*' --skip-existing --config-file .pypirc # Upload to pypi.org
#- export CURL_CA_BUNDLE="" - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist2/* # Upload to GitLab's package registry
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist2/*
only: only:
refs: refs:
- master - master
...@@ -107,7 +102,6 @@ pages: ...@@ -107,7 +102,6 @@ pages:
- unzip -o '*.zip' || true # Unzip downloaded documentation while ignoring not existing files - unzip -o '*.zip' || true # Unzip downloaded documentation while ignoring not existing files
- mkdir -p public/"$CI_COMMIT_BRANCH" # Create directory for docs for this branch if it doesn't exist - mkdir -p public/"$CI_COMMIT_BRANCH" # Create directory for docs for this branch if it doesn't exist
- cp -rf doc/sphinx/_build/html public/"$CI_COMMIT_BRANCH" # Copy docs to shared folder used by GitLab to publish Pages - cp -rf doc/sphinx/_build/html public/"$CI_COMMIT_BRANCH" # Copy docs to shared folder used by GitLab to publish Pages
- 'if [ ! -z ${BACKUP_ZIPFILE_URL+x} ]; then curl "$BACKUP_ZIPFILE_URL" --output backup.zip; unzip -o backup.zip; fi' # If BACKUP_ZIPFILE_URL is defined, download zipfile available at this address and unzip
artifacts: artifacts:
name: "$CI_COMMIT_BRANCH" name: "$CI_COMMIT_BRANCH"
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment