-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some redundancy in the github workflow
- Loading branch information
Showing
3 changed files
with
37 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build the site | ||
description: Build the site using nanoc | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout submodule | ||
shell: bash | ||
run: git submodule update --init --recursive --remote | ||
- name: Cache install Nix packages | ||
uses: rikhuijzer/cache-install@c90964bcac3286c8571cb849f7caffb9e8b9cb37 | ||
with: | ||
key: nix-${{ hashFiles('packages.nix', 'gemset.nix') }} | ||
nix_file: 'packages.nix' | ||
- name: Cache Output | ||
id: cache-output | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
./tmp/ | ||
./output/ | ||
key: build-${{ github.ref_name }} | ||
restore-keys: | | ||
build-master | ||
- name: Set environment variable | ||
shell: bash | ||
run: "export LANG=en_US.UTF-8" | ||
- name: Build site | ||
shell: bash | ||
run: "bundle exec nanoc --env=prod" | ||
- name: Run checks | ||
shell: bash | ||
run: "bundle exec nanoc --env=prod check --deploy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters