Meta: update flake and github action

This commit is contained in:
Jan Kremer 2024-06-01 16:35:58 +02:00
parent e083b710ec
commit 5f2808a91e
Signed by: jan
GPG key ID: A7DA689CB3B078EC
2 changed files with 7 additions and 13 deletions

View file

@ -24,26 +24,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
# extended: true
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Setup Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Build with Hugo
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
nix develop --command bash -c "hugo \
--environment production \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
--baseURL '${{ steps.pages.outputs.base_url }}/'"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:

View file

@ -20,7 +20,8 @@
default =
with pkgs;
mkShell {
nativeBuildInputs = with pkgs; [
name = "Hugo website";
packages = with pkgs; [
go
hugo
];