We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87d8d18 commit 4f1e3eaCopy full SHA for 4f1e3ea
.github/workflows/main.yml
@@ -0,0 +1,34 @@
1
+name: Generate Documentation
2
+
3
+on:
4
+ pull_request:
5
+ branches: [ main ]
6
+ repository_dispatch:
7
+ types: [ generate ]
8
+ workflow_dispatch:
9
+ schedule:
10
+ - cron: '15 5 * * *'
11
12
+permissions:
13
+ contents: write
14
15
+jobs:
16
+ build:
17
+ # Only run scheduled workflows on the main repository; prevents people
18
+ # from using build minutes on their forks.
19
+ if: github.repository == 'libgit2/www.libgit2.org-docs'
20
+ name: "Generate documentation"
21
+ runs-on: "ubuntu-latest"
22
+ steps:
23
+ - name: Check out repository
24
+ uses: actions/checkout@v4
25
+ with:
26
+ path: docs
27
+ fetch-depth: 0
28
+ - name: Set up documentation generator
29
+ run: npm install
30
+ - name: Generate documentation
31
+ run: ./generate docs
32
+ - name: Examine repository
33
+ run: git status
34
0 commit comments