pages/.woodpecker/build-site.yml

31 lines
785 B
YAML
Raw Normal View History

2024-02-08 17:16:33 +00:00
when:
branch: "master"
steps:
- name: Decrypt repository
2024-02-08 17:37:25 +00:00
image: andyaugustin/git-crypt:v1.0.2
2024-02-08 17:16:33 +00:00
commands:
- echo "${GIT_CRYPT_KEY}" | base64 --decode > /tmp/.git-crypt-key
2024-02-08 17:41:39 +00:00
- git config --global --add safe.directory
- git-crypt unlock /tmp/.git-crypt-key
- rm /tmp/.git-crypt-key
2024-02-08 17:16:33 +00:00
secrets:
- git_crypt_key
- name: Install Node packages
image: node:18.14.2-slim
commands:
- npm ci
- name: Build Hugo site
image: peaceiris/hugo:v0.111.3-full
environment:
HUGO_ENV: production
HUGO_ENVIRONMENT: production
commands:
- hugo --minify
- name: Deploy to pages
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
settings:
folder: public
ssh_key:
from_secret: ssh_key