Update .gitlab-ci.yml file

This commit is contained in:
Jonas Karl Wilhelm Hahn
2025-04-23 21:40:36 +00:00
parent 903066e30b
commit 2bc771c2c6

View File

@@ -1,18 +1,10 @@
# The Docker image that will be used to build your app
image: rust:latest
create-pages:
image: ghcr.io/myriad-dreamin/shiroa:v0.3.0
pages:
# The folder that contains the files to be exposed at the Page URL
publish: public
script:
- shiroa build --dest-dir public
artifacts:
paths:
- public
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_BRANCH == "main"
# Functions that should be executed before the build script is run
before_script:
- cargo install --git https://github.com/Myriad-Dreamin/shiroa --locked shiroa
script:
- shiroa build -d public
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH