Skip to content

Add new git configuration. #120

Add new git configuration.

Add new git configuration. #120

Workflow file for this run

name: davidtw.co
on:
push:
branches: [ "master" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install Nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Add Cachix binary caches
uses: cachix/cachix-action@v12
with:
name: veritas
extraPullNames: cachix,helix
signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
- name: Build website
run: |
cp --recursive --dereference --no-preserve=mode,ownership "$(nix-build --no-out-link)" result
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'result'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2