name: Build Site on: push: branches: - main pull_request: branches: - "**" workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: site: name: Next.js Build runs-on: [self-hosted, linux, x86_64, burrow-forge] steps: - name: Checkout uses: https://code.forgejo.org/actions/checkout@v4 with: token: ${{ github.token }} fetch-depth: 0 - name: Prepare Cache Dirs shell: bash run: | set -euo pipefail cache_root="${HOME}/.cache/burrow" mkdir -p "${cache_root}/npm" echo "NPM_CONFIG_CACHE=${cache_root}/npm" >> "${GITHUB_ENV}" - name: Build shell: bash run: | set -euo pipefail nix develop .#ci -c bash -lc 'cd site && npm install && npm run build'