Skip to content

Commit 8dfaa14

Browse files
authored
ci: Create documentation.yml
1 parent 1465456 commit 8dfaa14

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/documentation.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# .github/workflows/documentation.yml
2+
name: Documentation
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Generate Documentation
16+
uses: SwiftDocOrg/swift-doc@master
17+
with:
18+
inputs: Sources/
19+
module-name: OpenFoodFacts
20+
output: Documentation/
21+
- name: Update Permissions
22+
run: 'sudo chown --recursive $USER Documentation'
23+
- name: Deploy API documentation to Github Pages
24+
uses: JamesIves/github-pages-deploy-action@v4.4.3
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
branch: gh-pages
28+
folder: Documentation/

0 commit comments

Comments
 (0)