1
0
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:
2024-02-10 01:40:54 -07:00
commit 09b13b9b34
7 changed files with 1530 additions and 0 deletions

40
.gitlab-ci.yml Normal file
View 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"