mirror of
https://gitlab.com/Anson-Projects/zine.git
synced 2025-07-23 14:51:34 +00:00
init commit
This commit is contained in:
40
.gitlab-ci.yml
Normal file
40
.gitlab-ci.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
stages:
|
||||
- test
|
||||
- deploy
|
||||
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- target/
|
||||
- cargo/
|
||||
|
||||
before_script:
|
||||
- rustup default stable
|
||||
- cargo --version
|
||||
- rustc --version
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- cargo test --verbose
|
||||
|
||||
build_site:
|
||||
stage: build_site
|
||||
script:
|
||||
- cargo run
|
||||
- mv output public
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
script:
|
||||
- echo "Publishing site..."
|
||||
dependencies:
|
||||
- build_site
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
rules:
|
||||
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
Reference in New Issue
Block a user