clippable/.gitlab-ci.yml
2021-10-16 22:09:53 -07:00

31 lines
598 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:
name: klakegg/hugo:ext-alpine
entrypoint: [""]
stage: build
script:
- cd gitpage
- hugo
- mv public/ ..
artifacts:
paths:
- public/