Commit 296c007f authored by Swann Perarnau's avatar Swann Perarnau

[ci] create a readthedocs environment

Use gitlab environment to keep track of doc building on the gitlab side.
Allow for staging on the readthedocs trigger to allow devs to checkout
the docs outside of master.

Remove unused and unsafe dist rule.
parent 80431541
Pipeline #8686 failed with stages
in 30 minutes and 56 seconds
......@@ -115,30 +115,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