Skip to content

Merge branch 'main' of github.com:pwnwriter/pwnotes #16

Merge branch 'main' of github.com:pwnwriter/pwnotes

Merge branch 'main' of github.com:pwnwriter/pwnotes #16

Workflow file for this run

name: MdBook Build and Deploy
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Nix package manager
uses: DeterminateSystems/nix-installer-action@main
- name: Build the book using Nix
run: |
nix build .#mdbookBuild
ls -la result
- name: Deploy build to gh-pages branch
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: result
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}