Skip to content

rewrite narya-parse-cmdstart, fix #96 #255

rewrite narya-parse-cmdstart, fix #96

rewrite narya-parse-cmdstart, fix #96 #255

Workflow file for this run

name: "Build"
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- run: nix profile install nixpkgs#cachix
- run: env CACHIX_AUTH_TOKEN=${{ secrets.CACHIX_AUTH_TOKEN }} cachix watch-exec narya -- nix develop --accept-flake-config . --command dune test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- run: nix profile install nixpkgs#cachix
- run: env GIT_COMMIT=${GITHUB_SHA:0:8} CACHIX_AUTH_TOKEN=${{ secrets.CACHIX_AUTH_TOKEN }} cachix watch-exec narya -- nix build --impure --accept-flake-config .
- run: cd dist && ./build.sh
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: dist/build/
deploy:
if: github.event_name == 'push' && github.ref_name == 'master'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4