neovim-flake/.github/workflows/manual.yml

43 lines
953 B
YAML
Raw Permalink Normal View History

2023-04-15 10:44:12 +02:00
name: "Build and deploy documentation"
on:
2023-02-06 20:02:44 +01:00
workflow_dispatch:
push:
branches:
- main
2023-10-01 15:17:48 +02:00
paths:
# build the manuals only when docs directory is updated
- docs/**
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
2023-10-01 15:17:48 +02:00
- name: Install Nix
2023-10-20 11:24:24 +02:00
uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
2023-10-01 15:17:48 +02:00
- name: Build
run: |
2023-02-06 20:02:44 +01:00
nix build '.#docs'
2024-04-28 19:35:31 +02:00
cp -r result/share/doc/nvf public
2023-10-01 15:17:48 +02:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public