Strip owner of artefact when copying from Nix store. #103
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: 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 |