Update videos. #439
Workflow file for this run
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
name: CI | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v20 | |
- name: Cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: haskell-org | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Build Site | |
# we run the checks as a separate step | |
run: > | |
nix build \ | |
--verbose \ | |
--print-build-logs \ | |
--file . \ | |
built -o built-site \ | |
--arg doCheck false \ | |
--extra-experimental-features nix-command | |
- name: Check Links | |
run: > | |
nix shell \ | |
--quiet \ | |
--file . \ | |
linkchecker \ | |
--extra-experimental-features nix-command \ | |
--command linkchecker built-site | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: www.haskell.org | |
path: built-site* # Uses glob pattern because | |
# actions/upload-artifact@v2 gets | |
# confused by symlinks otherwise | |
# | |
# See: | |
# https://github.com/actions/upload-artifact/issues/92 |