Skip to content

update pages workflow #10

update pages workflow

update pages workflow #10

Workflow file for this run

name: Github Pages
on:
push:
branches:
- main
jobs:
build-github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build
run: nix develop --command bash -c "dx bundle --release --platform web && mkdir dist && cp -r target\dx\discidium\release\web\public\* dist\"
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
# this option will not maintain any history of your previous pages deployment
# set to false if you want all page build to be committed to your gh-pages branch history
single-commit: true