Skip to content

Commit 3f982ee

Browse files
committedJan 23, 2025
docs: Add gh action to deploy docs
1 parent b2ae2cc commit 3f982ee

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
 

‎.github/workflows/docs.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- feat/web-docs
7+
# paths:
8+
# - docs/**
9+
10+
jobs:
11+
docgen:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.GH_TOKEN }}
17+
- name: Push docs to nvim-orgmode.github.io repo
18+
uses: nkoppel/push-files-to-another-repository@v1.1.4
19+
env:
20+
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
21+
with:
22+
source-files: 'docs/'
23+
destination-username: 'nvim-orgmode'
24+
destination-repository: 'nvim-orgmode.github.io'
25+
destination-branch: 'feat/vitepress'
26+
commit-email: 'github-actions@github.com'

0 commit comments

Comments
 (0)