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

View file

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