File tree Expand file tree Collapse file tree 2 files changed +11
-18
lines changed
Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ name: Build and deploy documentation
22
33on :
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 :
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 :
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments