mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-30 15:44:41 +02:00
ci: simplify docs-build workflow
This commit is contained in:
parent
3834c4e0db
commit
7a2a25af02
2 changed files with 11 additions and 18 deletions
20
.github/workflows/build_documentation.yml
vendored
20
.github/workflows/build_documentation.yml
vendored
|
@ -2,8 +2,10 @@ name: Build and deploy documentation
|
|||
|
||||
on:
|
||||
push:
|
||||
# Runs on pushes targeting the default branch
|
||||
branches: [main]
|
||||
# Runs on pushes targeting the release branches
|
||||
branches:
|
||||
- main
|
||||
- nixos-24.05
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
@ -27,12 +29,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 40
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pages
|
||||
uses: actions/configure-pages@v5
|
||||
|
||||
- name: Install nix
|
||||
uses: cachix/install-nix-action@v26
|
||||
with:
|
||||
|
@ -44,7 +40,13 @@ jobs:
|
|||
name: nix-community
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- run: ./build-docs.sh
|
||||
- run: |
|
||||
set -ex
|
||||
mkdir -p docs-build
|
||||
nix build github:nix-community/nixvim#docs
|
||||
cp -r result/share/doc/* docs-build
|
||||
nix build github:nix-community/nixvim/nixos-24.05#docs
|
||||
cp -r result/share/doc docs-build/stable
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue