Add deployment pipeline step
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
caef031d48
commit
11af123adf
@ -6,11 +6,17 @@ steps:
|
|||||||
- npm install -D tailwindcss @tailwindcss/typography
|
- npm install -D tailwindcss @tailwindcss/typography
|
||||||
- npx tailwindcss -i input.css -o static/css/index.css --minify
|
- npx tailwindcss -i input.css -o static/css/index.css --minify
|
||||||
- zola build
|
- zola build
|
||||||
# deploy:
|
- ls -l
|
||||||
# image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
|
deploy:
|
||||||
# settings:
|
image: alpine:3.19
|
||||||
# folder: public
|
secrets: [ git_push_token ]
|
||||||
# branch: pages
|
commands:
|
||||||
# ssh_key:
|
- apk add --no-cache git
|
||||||
# from_secret: ssh_key
|
- git config --global user.email "ci@polynom.me"
|
||||||
# git_config_name: "polynom.me CI system"
|
- git config --global user.name "polynom.me CI system"
|
||||||
|
- git config --global --add safe.directory $CI_WORKSPACE/$CI_REPO_OWNER/$CI_REPO_NAME/deploy
|
||||||
|
- git init -b pages public
|
||||||
|
- cd public
|
||||||
|
- git add --all
|
||||||
|
- git commit -m "Deploy new version $CI_COMMIT_SHA"
|
||||||
|
- git push -u https://$GIT_PUSH_TOKEN@git.polynom.me/$CI_REPO_OWNER/$CI_REPO_NAME.git -f pages
|
Loading…
Reference in New Issue
Block a user