Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add site build #1

feat: add site build

feat: add site build #1

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
name: Build and Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Restore and save Nix store
uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
- run: |
nix build --fallback --system x86_64-linux --option sandbox relaxed .#site --json --out-link result
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: result # The folder the action should deploy.
branch: gh-pages