build-dash #159
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.qmd' | |
- '**.R' | |
schedule: | |
- cron: "03 04,16 * * *" | |
workflow_dispatch: | |
name: build-dash | |
permissions: | |
contents: write | |
jobs: | |
build-dash: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
RENV_PATHS_ROOT: ~/.local/share/renv | |
steps: | |
- 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: Render and Publish | |
uses: b-rodrigues/quarto-nix-actions/publish@main | |
with: | |
target: gh-pages | |
path: index.qmd | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |