Skip to content

Commit 5208229

Browse files
authored
Merge pull request sbcgua#203 from sbcgua/docs
Docusaurus docs
2 parents 36788a5 + 9f095a6 commit 5208229

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+21222
-1008
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'docsite/**'
9+
- '!docsite/README.md'
10+
- '.github/deploy-gh-pages.yml'
11+
# Review gh actions docs if you want to further define triggers, paths, etc
12+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
13+
14+
jobs:
15+
build:
16+
name: Build Docusaurus
17+
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
working-directory: ./docsite
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 22
28+
cache: npm
29+
cache-dependency-path: './docsite/package-lock.json'
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
- name: Build website
34+
run: npm run build
35+
36+
- name: Upload Build Artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: docsite/build
40+
41+
deploy:
42+
name: Deploy to GitHub Pages
43+
needs: build
44+
45+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
46+
permissions:
47+
pages: write # to deploy to Pages
48+
id-token: write # to verify the deployment originates from an appropriate source
49+
50+
# Deploy to the github-pages environment
51+
environment:
52+
name: github-pages
53+
url: ${{ steps.deployment.outputs.page_url }}
54+
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Deploy to GitHub Pages
58+
id: deployment
59+
uses: actions/deploy-pages@v4
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test pages deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
paths:
8+
- 'docsite/**'
9+
10+
11+
jobs:
12+
test-deploy:
13+
name: Test deployment
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: ./docsite
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
cache: npm
26+
cache-dependency-path: './docsite/package-lock.json'
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
- name: Test build website
31+
run: npm run build

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
abaplint-deps
22
transpiled
33
node_modules
4-
package.json
5-
package-lock.json
4+
/package.json
5+
/package-lock.json

0 commit comments

Comments
 (0)