Skip to content

Commit

Permalink
Create documentation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ethomson committed Nov 24, 2024
1 parent 87d8d18 commit 4c94c7c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Generate Documentation

on:
pull_request:
branches: [ main ]
repository_dispatch:
types: [ generate ]
workflow_dispatch:
schedule:
- cron: '15 5 * * *'

permissions:
contents: write

jobs:
build:
# Only run scheduled workflows on the main repository; prevents people
# from using build minutes on their forks.
if: github.repository == 'libgit2/www.libgit2.org-docs'
name: "Generate documentation"
runs-on: "ubuntu-latest"
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
path: docs
fetch-depth: 0
- name: Set up documentation generator
run: npm install
- name: Generate documentation
run: ./generate docs
- name: Examine repository
run: git status
working-directory: docs

0 comments on commit 4c94c7c

Please sign in to comment.