- Replace manual env setup with automated 'make venv' - Use venv/ directory to match Makefile expectations - Simplify CI script and eliminate duplication - Ensure theme installation works correctly
33 lines
913 B
YAML
33 lines
913 B
YAML
stages:
|
|
- build
|
|
- trigger-deploy
|
|
|
|
build:
|
|
stage: build
|
|
tags: ["build"]
|
|
script:
|
|
- make venv
|
|
- export THEME='pelican-themes/pelican-svbhack'
|
|
- export SITEURL='https://russell.ballestrini.net'
|
|
- export REMARKBOX='60ce7710-9b9f-11e9-9ea3-040140774501'
|
|
#- export PLAUSIBLE_ANALYTICS='analytics.unturf.com'
|
|
- make html
|
|
- make resume
|
|
- mv output russell.ballestrini.net
|
|
- tar -zcvf russell.ballestrini.net.tar.gz russell.ballestrini.net
|
|
- sha512sum russell.ballestrini.net.tar.gz >> russell.ballestrini.net.tar.gz.hash
|
|
- echo $CI_COMMIT_SHA >> commit-hash.txt
|
|
artifacts:
|
|
paths:
|
|
- russell.ballestrini.net.tar.gz
|
|
- russell.ballestrini.net.tar.gz.hash
|
|
- commit-hash.txt
|
|
expire_in: 1 month
|
|
|
|
trigger_deploy:
|
|
stage: trigger-deploy
|
|
trigger:
|
|
include:
|
|
- local: .gitlab-ci-deploy.yml
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|