Commit 32cf7148 authored by Swann Perarnau's avatar Swann Perarnau

Merge branch 'doc-environment' into 'staging'

[ci] create a readthedocs environment

See merge request !90
parents 80431541 52dc671b
Pipeline #8690 passed with stages
in 7 minutes and 20 seconds
......@@ -17,6 +17,10 @@ repoquality:
- nix run -f "$ARGOPKGS" repoquality --command repoquality
tags:
- integration
artifacts:
when: on_failure
paths:
- .repoquality
checkpatch:
stage: style
......@@ -115,30 +119,14 @@ readthedocs:
stage: docs
when: on_success
only:
- staging
- master
- /v[0-9]+\.[0-9]+\.x/
tags:
- integration
environment:
name: rtd/$CI_COMMIT_REF_NAME
url: https://argo-aml.readthedocs.io/en/$CI_COMMIT_REF_NAME
script:
- nix run nixpkgs.curl -c curl -X POST -d "branch=$CI_COMMIT_REF_NAME" -d "token=$READTHEDOCS_TOKEN" https://readthedocs.org/api/v2/webhook/argo-aml/83161/
dist:
stage: release
except:
- /^wip.*/
- /^WIP.*/
when: on_success
only:
- tags
tags:
- integration
script:
- nix-build "$ARGOPKGS" -A aml-dist --arg aml-src ./.
- nix-shell "$ARGOPKGS" -A aml-dist --arg aml-src ./. --run "./release.sh CREATE $CI_JOB_ID $CI_PROJECT_ID $RELEASE_TOKEN $CI_COMMIT_REF_NAME"
artifacts:
when: on_success
paths:
- result/*.tar.gz
- CHECKSUM
expire_in: 1000y
- nix run nixpkgs.curl -c curl -X POST -d "branches=$CI_COMMIT_REF_NAME" -d "token=$READTHEDOCS_TOKEN" https://readthedocs.org/api/v2/webhook/argo-aml/83161/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment