Skip to content

Commit 884ac89

Browse files
committed
Clean up
1 parent 99353cc commit 884ac89

File tree

4 files changed

+79
-1
lines changed

4 files changed

+79
-1
lines changed

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: rpearce

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: github-actions
5+
directory: "/"
6+
schedule:
7+
interval: daily
8+
time: '00:00'
9+
timezone: UTC
10+
open-pull-requests-limit: 10
11+
commit-message:
12+
prefix: "chore"
13+
include: "scope"

.github/workflows/main.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
build-nix:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/[email protected]
12+
13+
- name: Install Nix
14+
uses: cachix/install-nix-action@v16
15+
with:
16+
install_url: https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
17+
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
18+
extra_nix_config: |
19+
experimental-features = nix-command flakes
20+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Build with cachix
23+
uses: cachix/cachix-action@v10
24+
with:
25+
name: hakyll-nix-template
26+
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
27+
28+
- run: nix build
29+
30+
- name: Artifact pages
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: pages
34+
path: result/dist
35+
36+
deploy:
37+
if: github.ref == 'refs/heads/main'
38+
runs-on: ubuntu-latest
39+
needs: [build-nix]
40+
41+
steps:
42+
- name: Download artifact
43+
uses: actions/download-artifact@v2
44+
with:
45+
name: pages
46+
path: result
47+
48+
- name: GitHub Pages
49+
if: success()
50+
uses: crazy-max/[email protected]
51+
with:
52+
build_dir: result
53+
target_branch: gh-pages
54+
keep_history: false
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
_cache/
21
.stack-work/
2+
.ghc.environment.*
3+
_cache
4+
_tmp
5+
dist
6+
dist-newstyle
7+
node_modules
8+
result
39
scratch/

0 commit comments

Comments
 (0)