new(file): add shell.nix #10
Workflow file for this run
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 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 | |
- uses: workflow/nix-shell-action@v3 | |
with: | |
script: | | |
nix-shell | |
poetry run jupytext --sync pills/scripts/*.py | |
quarto publish gh-pages | |
# - name: Publish to GitHub Pages (and render) | |
# uses: b-rodrigues/quarto-nix-actions/publish@main | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |