clippable/.gitlab-ci.yml
2021-10-16 22:02:41 -07:00

30 lines
589 B
YAML

image: rustlang/rust:nightly
stages:
- build
# Builds out the intended zip package
package:
stage: build
script:
- mkdir -p build
- cp api/templates/ api/static/ build -r
- cargo build --release
- cp target/release/api build/server
- cp ./scripts/generate-thumbnail.sh build/
- cp readme.md build/
- sh ./scripts/default-rocket-toml.sh
artifacts:
paths:
- build/
website:
image: klakegg/hugo:ext-alpine
entrypoint: [""]
stage: build
script:
- cd gitpage
- hugo
- mv public/
artifacts:
paths:
- gitpage/public