From 0d573000916239b5679c3598a771549c1357be8a Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Thu, 8 Feb 2024 11:16:33 -0600 Subject: [PATCH] ci: Add Woodpecker workflow --- .woodpecker/build-site.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .woodpecker/build-site.yml diff --git a/.woodpecker/build-site.yml b/.woodpecker/build-site.yml new file mode 100644 index 0000000..e53d974 --- /dev/null +++ b/.woodpecker/build-site.yml @@ -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 -- 2.45.2