Skip to content

Commit 360bb6d

Browse files
committed
fix(build): Refactor GH workflows
1 parent 0dff71c commit 360bb6d

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

.github/workflows/push.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,21 @@ jobs:
1717
java-version: 17
1818
distribution: oracle
1919

20-
- name: Generate navigation
21-
shell: bash
22-
run: |
23-
java .github/scripts/generate_navigation.java "$(pwd)"
24-
2520
- name: Setup node
2621
uses: actions/setup-node@v3
2722
with:
2823
node-version: latest
2924

30-
- name: Run Antora
31-
run: npx antora antora-playbook.yml
25+
- name: Generate navigation
26+
shell: bash
27+
run: sh generate.sh
3228

3329
- name: Copy site
3430
shell: bash
3531
run: |
36-
mkdir -p $GITHUB_WORKSPACE/website
37-
cp -rf $GITHUB_WORKSPACE/build/site/* $GITHUB_WORKSPACE/website
38-
touch $GITHUB_WORKSPACE/website/.nojekyll
32+
mkdir -p website
33+
cp -rf build/site/* website
34+
touch website/.nojekyll
3935
4036
- name: Deploy to GitHub Pages
4137
uses: JamesIves/github-pages-deploy-action@4.0.0

.github/workflows/site.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,21 @@ jobs:
1616
java-version: 17
1717
distribution: oracle
1818

19-
- name: Generate navigation
20-
shell: bash
21-
run: |
22-
java .github/scripts/generate_navigation.java "$(pwd)"
23-
2419
- name: Setup node
2520
uses: actions/setup-node@v3
2621
with:
2722
node-version: latest
2823

29-
- name: Run Antora
30-
run: npx antora antora-playbook.yml
24+
- name: Generate navigation
25+
shell: bash
26+
run: sh generate.sh
3127

3228
- name: Copy site
3329
shell: bash
3430
run: |
35-
mkdir -p $GITHUB_WORKSPACE/website
36-
cp -rf $GITHUB_WORKSPACE/build/site/* $GITHUB_WORKSPACE/website
37-
touch $GITHUB_WORKSPACE/website/.nojekyll
31+
mkdir -p website
32+
cp -rf build/site/* website
33+
touch website/.nojekyll
3834
3935
- name: Deploy to GitHub Pages
4036
uses: JamesIves/github-pages-deploy-action@4.0.0

0 commit comments

Comments
 (0)