1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-12-26 07:24:42 +01:00

build book in ci, deploy it to gitlab pages

This commit is contained in:
Charles Hall 2024-03-14 20:27:44 -07:00
parent 4f8d3953b3
commit 6800e5fd18
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 30 additions and 0 deletions

View file

@ -98,6 +98,10 @@ artifacts:
- ./bin/nix-build-and-cache .#oci-image-aarch64-unknown-linux-musl
- cp result oci-image-arm64v8.tar.gz
- ./bin/nix-build-and-cache .#book
# We can't just copy the symlink, we need to dereference it https://gitlab.com/gitlab-org/gitlab/-/issues/19746
- cp -r --dereference result public
artifacts:
paths:
- x86_64-unknown-linux-musl
@ -105,6 +109,7 @@ artifacts:
- x86_64-unknown-linux-musl.deb
- oci-image-amd64.tar.gz
- oci-image-arm64v8.tar.gz
- public
rules:
# CI required for all MRs
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
@ -165,3 +170,15 @@ oci-image:push-dockerhub:
IMAGE_NAME: matrixconduit/matrix-conduit
before_script:
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD
pages:
stage: publish
dependencies:
- artifacts
only:
- next
script:
- "true"
artifacts:
paths:
- public

View file

@ -30,6 +30,11 @@ name = "cargo-clippy"
group = "versions"
script = "cargo clippy -- --version"
[[task]]
name = "lychee"
group = "versions"
script = "lychee --version"
[[task]]
name = "cargo-fmt"
group = "lints"
@ -51,6 +56,11 @@ name = "cargo-clippy"
group = "lints"
script = "cargo clippy --workspace --all-targets --color=always -- -D warnings"
[[task]]
name = "lychee"
group = "lints"
script = "lychee --offline docs"
[[task]]
name = "cargo"
group = "tests"

View file

@ -304,6 +304,9 @@
# Needed for our script for Complement
jq
# Needed for finding broken markdown links
lychee
]);
};
});