Skip to content

Commit b50e1d0

Browse files
Patch 16 build checks (#24)
Fix Linkchecker and Deployment github actions
1 parent a27fb24 commit b50e1d0

2 files changed

Lines changed: 25 additions & 18 deletions

File tree

.github/workflows/deploy-website.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Build Check
1+
name: Deploy Portal
22

33
on:
44
push:
55
branches: [ "main" ]
66

77
permissions:
8-
contents: read
8+
contents: write
99

1010
jobs:
1111
deploy:
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [18.x, 20.x]
17+
node-version: [20.x]
1818

1919
steps:
2020
- uses: actions/checkout@v4
@@ -38,14 +38,26 @@ jobs:
3838
- name: Install Docusaurus dependencies
3939
run: yarn install
4040

41-
- name: Build website
41+
- name: Build Antora
42+
continue-on-error: true
4243
run: |
4344
cd antora
4445
npx antora antora-playbook.yml --stacktrace
45-
cd ..
46-
yarn build
46+
47+
- name: Build Docusaurus
48+
# continue-on-error: true
49+
run: yarn build
4750

4851
- name: Deploy to GitHub Pages
52+
# run: yarn deploy
4953
uses: JamesIves/github-pages-deploy-action@v4
5054
with:
51-
folder: build # The folder the action should deploy.
55+
folder: build # The folder the action should deploy.
56+
57+
- name: Upload Artifact Logs
58+
id: deployment
59+
uses: actions/upload-artifact@v4
60+
if: ${{ always() }}
61+
with:
62+
name: Portal Snapshot
63+
path: ./build/

.github/workflows/linkchecker.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ on:
2020

2121
jobs:
2222
website-checker:
23-
name: $WEBSITE_URL Link Checker
23+
name: Developer Portal Link Checker
2424
runs-on: ubuntu-latest
2525
continue-on-error: true
2626
steps:
2727
- name: Install Python
2828
uses: actions/setup-python@v5
29-
with:
30-
python-version: '3.8'
3129
- name: Setup Environment
3230
run: |
3331
pip3 install git+https://github.com/linkchecker/linkchecker.git
@@ -39,25 +37,22 @@ jobs:
3937
--no-warnings \
4038
-t 100 \
4139
-o html \
42-
--ignore-url /internal/* \
43-
--ignore-url /some_other_directory/~.* \
44-
--ignore-url /*\.extension \
45-
$WEBSITE_URL > ./logs/$WEBSITE_URL.html
40+
http://developer.riscv.org > ./logs/developer.riscv.org.html
4641
4742
- name: Process Link Log
4843
if: always()
4944
continue-on-error: true
5045
run: |
51-
echo LC_SUMMARY=$( awk '/\d* warnings found/' ./logs/$WEBSITE_URL.html) >> $GITHUB_ENV
52-
echo $(awk '/\d* warnings found/' ./logs/$WEBSITE_URL.html )
46+
echo LC_SUMMARY=$( awk '/\d* warnings found/' ./logs/developer.riscv.org.html) >> $GITHUB_ENV
47+
echo $(awk '/\d* warnings found/' ./logs/developer.riscv.org.html )
5348
echo $GITHUB_ENV
5449
5550
- name: Upload Artifact Logs
5651
uses: actions/upload-artifact@v4
5752
if: ${{ always() }}
5853
with:
59-
name: $WEBSITE_URL.html
60-
path: ./logs/$WEBSITE_URL.html
54+
name: developer.riscv.org.html
55+
path: ./logs/developer.riscv.org.html
6156

6257
# # Slack Notification of broken links found
6358
# - name: Slack Notification

0 commit comments

Comments
 (0)