This commit is contained in:
parent
588ef5cd00
commit
39e5b8b61f
6 changed files with 56 additions and 78 deletions
35
.forgejo/workflows/main.yml
Normal file
35
.forgejo/workflows/main.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-nix:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: apt-get update -y && apt-get install sudo
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@V28
|
||||||
|
with:
|
||||||
|
github_access_token: ${{ secrets.GH_TOKEN }}
|
||||||
|
extra_nix_config: |
|
||||||
|
access-tokens = github.com=${{ secrets.GH_TOKEN }}
|
||||||
|
allow-import-from-derivation = true
|
||||||
|
auto-optimise-store = true
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
substituters = https://cache.nixos.org https://cache.iog.io
|
||||||
|
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
|
||||||
|
|
||||||
|
- name: Build with cachix
|
||||||
|
uses: cachix/cachix-action@v15
|
||||||
|
env:
|
||||||
|
USER: $(whoami)
|
||||||
|
with:
|
||||||
|
name: hakyll-nix-template
|
||||||
|
|
||||||
|
- run: nix build --accept-flake-config
|
||||||
|
|
||||||
|
# TODO: Push artifact?
|
3
.github/FUNDING.yml
vendored
3
.github/FUNDING.yml
vendored
|
@ -1,3 +0,0 @@
|
||||||
# These are supported funding model platforms
|
|
||||||
|
|
||||||
github: rpearce
|
|
13
.github/dependabot.yml
vendored
13
.github/dependabot.yml
vendored
|
@ -1,13 +0,0 @@
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
|
|
||||||
- package-ecosystem: github-actions
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: daily
|
|
||||||
time: '00:00'
|
|
||||||
timezone: UTC
|
|
||||||
open-pull-requests-limit: 10
|
|
||||||
commit-message:
|
|
||||||
prefix: "chore"
|
|
||||||
include: "scope"
|
|
58
.github/workflows/main.yml
vendored
58
.github/workflows/main.yml
vendored
|
@ -1,58 +0,0 @@
|
||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-nix:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Nix
|
|
||||||
uses: cachix/install-nix-action@V28
|
|
||||||
with:
|
|
||||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
extra_nix_config: |
|
|
||||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
||||||
allow-import-from-derivation = true
|
|
||||||
auto-optimise-store = true
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
substituters = https://cache.nixos.org https://cache.iog.io
|
|
||||||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
|
|
||||||
|
|
||||||
- name: Build with cachix
|
|
||||||
uses: cachix/cachix-action@v15
|
|
||||||
with:
|
|
||||||
name: hakyll-nix-template
|
|
||||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
|
||||||
|
|
||||||
- run: nix build --accept-flake-config
|
|
||||||
|
|
||||||
- name: Artifact pages
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: pages
|
|
||||||
path: result/dist
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [build-nix]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Download artifact
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: pages
|
|
||||||
path: result
|
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
|
||||||
if: success()
|
|
||||||
uses: crazy-max/ghaction-github-pages@v4.0.0
|
|
||||||
with:
|
|
||||||
build_dir: result
|
|
||||||
target_branch: gh-pages
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
@ -21,6 +21,8 @@ body {
|
||||||
font-feature-settings: "kern", "liga", "clig", "calt";
|
font-feature-settings: "kern", "liga", "clig", "calt";
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
|
margin-left: 4ch;
|
||||||
|
margin-right: 4ch;
|
||||||
}
|
}
|
||||||
body,
|
body,
|
||||||
input,
|
input,
|
||||||
|
@ -49,6 +51,20 @@ small {
|
||||||
p {
|
p {
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
}
|
}
|
||||||
pre.sourceCode {
|
img,
|
||||||
padding: 2rem 1.5rem;
|
.sourceCode {
|
||||||
|
width: max-content;
|
||||||
|
border-radius: 0.5ch;
|
||||||
|
}
|
||||||
|
pre.sourceCode {
|
||||||
|
padding: 1.5ch 3ch 1.5ch 1.5ch !important;
|
||||||
|
}
|
||||||
|
.postMetadata {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
background: black;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
<h1>
|
<h1>
|
||||||
<a href=".$url$">$title$</a>
|
<a href=".$url$">$title$</a>
|
||||||
</h1>
|
</h1>
|
||||||
<div>
|
<div class="postMetadata">
|
||||||
$date$ $if(updated)$(updated: $updated$)$endif$
|
$date$ $if(updated)$(updated: $updated$)$endif$ <br>
|
||||||
|
$author$
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<section>
|
<section>
|
||||||
|
|
Loading…
Add table
Reference in a new issue