Skip to content

Link .luarc.json with Nix (#17) #12

Link .luarc.json with Nix (#17)

Link .luarc.json with Nix (#17) #12

Workflow file for this run

---
name: Render documentation with vimhelp and deploy to GitHub Pages
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run
# in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production
# deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
vimhelp-render-html-docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
extra-experimental-features = nix-command flakes
accept-flake-config = true
- name: Render documentation with vimhelp
id: build_docs
run: |
DOC_PATH=$(nix build '.#docs' --print-build-logs --print-out-paths --no-link)
cp --recursive --dereference "$DOC_PATH" public
sudo chown -R "$USER" public/
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload HTML for GitHub Pages
uses: actions/upload-pages-artifact@v2
with:
path: public/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2