Skip to content

Commit 7a2a25a

Browse files
committed
ci: simplify docs-build workflow
1 parent 3834c4e commit 7a2a25a

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

.github/workflows/build_documentation.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: Build and deploy documentation
22

33
on:
44
push:
5-
# Runs on pushes targeting the default branch
6-
branches: [main]
5+
# Runs on pushes targeting the release branches
6+
branches:
7+
- main
8+
- nixos-24.05
79

810
# Allows you to run this workflow manually from the Actions tab
911
workflow_dispatch:
@@ -27,12 +29,6 @@ jobs:
2729
runs-on: ubuntu-latest
2830
timeout-minutes: 40
2931
steps:
30-
- name: Checkout
31-
uses: actions/checkout@v4
32-
33-
- name: Setup pages
34-
uses: actions/configure-pages@v5
35-
3632
- name: Install nix
3733
uses: cachix/install-nix-action@v26
3834
with:
@@ -44,7 +40,13 @@ jobs:
4440
name: nix-community
4541
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
4642

47-
- run: ./build-docs.sh
43+
- run: |
44+
set -ex
45+
mkdir -p docs-build
46+
nix build github:nix-community/nixvim#docs
47+
cp -r result/share/doc/* docs-build
48+
nix build github:nix-community/nixvim/nixos-24.05#docs
49+
cp -r result/share/doc docs-build/stable
4850
4951
- name: Upload artifact
5052
uses: actions/upload-pages-artifact@v3

build-docs.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)