This commit is contained in:
parent
0375dcf6e0
commit
f3391badf4
1 changed files with 7 additions and 11 deletions
|
@ -2,20 +2,16 @@ when:
|
||||||
branch: "master"
|
branch: "master"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Node packages
|
- name: Build site
|
||||||
image: node:18.14.2-slim
|
image: nixos/nix:2.24.11
|
||||||
|
privileged: true
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
- name: Build Hugo site
|
- echo 'sandbox = true' >> /etc/nix/nix.conf
|
||||||
image: peaceiris/hugo:v0.111.3-full
|
- nix build
|
||||||
environment:
|
|
||||||
HUGO_ENV: production
|
|
||||||
HUGO_ENVIRONMENT: production
|
|
||||||
commands:
|
|
||||||
- hugo --minify
|
|
||||||
- name: Deploy to pages
|
- name: Deploy to pages
|
||||||
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
|
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
|
||||||
settings:
|
settings:
|
||||||
folder: public
|
folder: result
|
||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
|
|
Loading…
Reference in a new issue