Fix broken link (#1077) #882
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: "Build and Deploy" | |
on: | |
push: {} | |
pull_request: {} | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: cachix/install-nix-action@v26 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: nix-dev | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Build | |
run: | | |
nix-build --arg withManuals true | |
# The netlify action doesn't follow symlinks properly. | |
mkdir ./dist | |
cp -RL ./result/* ./dist/ | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
with: | |
production-deploy: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
publish-dir: './dist' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: 'Deploy from GitHub Actions' | |
enable-pull-request-comment: true | |
overwrites-pull-request-comment: true | |
enable-commit-comment: false | |
enable-commit-status: true | |
enable-github-deployment: false | |
if: github.repository_owner == 'NixOS' |