Meta: update flake and github action
This commit is contained in:
parent
e083b710ec
commit
5f2808a91e
2 changed files with 7 additions and 13 deletions
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue