Skip to content
Snippets Groups Projects
Verified Commit 433b00de authored by Ming Di Leom's avatar Ming Di Leom
Browse files

ci: deploy site assets

parent 9f2523ba
No related branches found
No related tags found
No related merge requests found
Pipeline #1483246791 passed
......@@ -16,13 +16,17 @@ build:
- git clone --depth 1 https://gitlab.com/curben/blog.git
- cd blog/
- npm install --include=optional --force
# site assets
- git clone --depth 1 --branch site https://gitlab.com/curben/blog.git site
script:
- npm run build
after_script: # pages must be deployed from root public/ folder
after_script:
# pages must be deployed from root public/ folder
- mkdir -p public/
- cp -r blog/public/* public/
- cp -r site/* public/
- echo "SHORT_COMMIT_HASH=$(git rev-parse --short HEAD)" >> build.env
- echo "COMMIT_HASH=$(git rev-parse HEAD)" >> build.env
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment