let's see how we go...

This commit is contained in:
Robert Pearce 2020-09-21 22:03:52 -04:00
parent ba4bd84bd0
commit b29661efb6
No known key found for this signature in database
GPG key ID: 07A0E482E5616C9B
35 changed files with 902 additions and 2 deletions

55
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,55 @@
name: CI
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v11
with:
skip_adding_nixpkgs_channel: true
- name: Build with cachix
uses: cachix/cachix-action@v6
with:
name: my-site
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
#authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix-build
- run: nix-shell --run "echo OK"
- name: Artifact pages
uses: actions/upload-artifact@v2
with:
name: pages
path: result/dist
deploy:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: pages
path: result
- name: GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
build_dir: result
target_branch: gh-pages
keep_history: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}