ci: Add Woodpecker workflow
This commit is contained in:
parent
bcd5dadd19
commit
0d57300091
1 changed files with 29 additions and 0 deletions
29
.woodpecker/build-site.yml
Normal file
29
.woodpecker/build-site.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
when:
|
||||
branch: "master"
|
||||
|
||||
steps:
|
||||
- name: Decrypt repository
|
||||
image: truemark/git-crypt:beta-0.7.0-alpine-3.17
|
||||
commands:
|
||||
- echo "${GIT_CRYPT_KEY}" | base64 --decode > ./.git-crypt-key
|
||||
- git-crypt unlock ./.git-crypt-key
|
||||
- rm ./.git-crypt-key
|
||||
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
|
Loading…
Reference in a new issue