nvf/.github/workflows/check-docs.yml

52 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2023-04-15 08:36:15 +00:00
name: "Validate flake & check documentation"
2023-04-15 08:34:34 +00:00
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
paths:
- docs/**
jobs:
2023-04-15 08:36:15 +00:00
flake-docs-check:
name: Validate Flake Documentation
2023-04-15 08:34:34 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
package:
2023-10-01 13:17:48 +00:00
- docs
- docs-html
- docs-manpages
- docs-json
2023-04-15 08:34:34 +00:00
steps:
- uses: easimon/maximize-build-space@v10
2023-04-15 08:38:51 +00:00
with:
overprovision-lvm: true
remove-android: true
remove-dotnet: true
remove-haskell: true
2023-10-01 13:17:48 +00:00
2023-10-20 09:24:24 +00:00
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
2023-04-15 08:38:51 +00:00
- uses: actions/checkout@v4
2023-10-01 13:17:48 +00:00
name: Checkout
2023-04-15 08:34:34 +00:00
- name: Set default git branch (to reduce log spam)
run: git config --global init.defaultBranch main
2023-10-01 13:17:48 +00:00
2023-10-20 09:24:24 +00:00
- name: Build documentation packages
2023-04-15 08:34:34 +00:00
run: nix build .#${{ matrix.package }} --print-build-logs
2023-10-01 13:17:48 +00:00
- name: Get current date
id: get-date
# output format: 2023-12-22-120000
run: echo "date=$(date +'%Y-%m-%d-%H%M%S')" >> ${GITHUB_OUTPUT}
2023-05-03 10:32:45 +00:00
- name: Upload doc artifacts
uses: actions/upload-artifact@v4
2023-05-03 10:32:45 +00:00
with:
name: "${{ matrix.package }}"
2023-05-03 10:32:45 +00:00
path: result/share/doc/neovim-flake/