Skip to content

Add a helper for squares of morphisms of symmetric containers #8

Add a helper for squares of morphisms of symmetric containers

Add a helper for squares of morphisms of symmetric containers #8

Workflow file for this run

name: Type check and publish library
on:
push:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
render:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: phijor
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Getting nix version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Render Agda code to HTML
run: nix build --print-build-logs '.#default.html'
# XXX: https://github.com/actions/deploy-pages/issues/58
- name: "Fix permissions on build output"
run: |
cp --recursive --dereference --no-preserve=mode,ownership result-html public
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
name: "Deploy rendered Agda code to Pages"
if: success() && github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: render
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4