Skip to content

Commit

Permalink
new(action): add build_website.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
afermg committed Mar 20, 2024
1 parent ba1c0e4 commit 6110a57
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build website

on:
push:
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty
log-directives: nix_installer=trace
backtrace: full

- name: Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Build development environment
run: |
nix-build
- name: Publish to GitHub Pages (and render)
uses: b-rodrigues/quarto-nix-actions/publish@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6110a57

Please sign in to comment.