sitoctt/.gitlab-ci.yml

29 lines
694 B
YAML
Raw Normal View History

image: alpine:latest
2022-08-29 15:41:44 +02:00
before_script: |
apk update
apk add python3 py3-pip npm go git
pip3 install requests lxml
npm install -g pug-cli
pages:
stage: deploy
2022-08-29 15:41:44 +02:00
script: |
git clone --depth 1 https://github.com/LukeEmmet/html2gmi
cd html2gmi
go get github.com/LukeEmmet/html2gmi
echo "#!/bin/sh" > ./html2gmi
echo "cd $PWD; go run ." >> ./html2gmi
chmod +x ./html2gmi
PATH=$PATH:$PWD
cd ..
git clone --depth 1 https://gitlab.com/octtspacc/staticoso
sh ./Scripts/Deploy.GitLab.sh
sh ./Scripts/Deploy.Gemini.sh
sh ./Scripts/Prepare.NoStyle.sh
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH