48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
container: nixpkgs/nix-flakes:nixos-24.05
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: 'true' # Optional; should be the default
|
|
- name: Checkout lfs
|
|
run: |
|
|
git lfs install --local
|
|
AUTH=$(git config --local http.${{ github.server_url }}/.extraheader)
|
|
git config --local --unset http.${{ github.server_url }}/.extraheader
|
|
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
|
git lfs pull
|
|
- name: Run Nix Build
|
|
run: nix build .
|
|
# - uses: actions/upload-pages-artifact@v3
|
|
# with:
|
|
# path: result/
|
|
|
|
# deploy:
|
|
# environment:
|
|
# name: github-pages
|
|
# url: ${{ steps.deployment.outputs.page_url }}
|
|
# runs-on: ubuntu-latest
|
|
# needs: build
|
|
# permissions:
|
|
# pages: write # to deploy to Pages
|
|
# id-token: write # to verify the deployment originates from an appropriate source
|
|
# steps:
|
|
# - name: Deploy to GitHub Pages
|
|
# id: deployment
|
|
# uses: actions/deploy-pages@v4
|
|
# with:
|
|
# preview: true
|