Skip to content

Fix: pages workflow had no write access #2

Fix: pages workflow had no write access

Fix: pages workflow had no write access #2

Workflow file for this run

name: github pages
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@a56e3a80896f10bfe28feea2c49695c0225b2485
- name: Build documentation book
run: nix build -L --show-trace .#website
- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./result