Skip to content

Commit cd6e61a

Browse files
committed
changed links
1 parent f7c178e commit cd6e61a

File tree

1 file changed

+14
-29
lines changed

1 file changed

+14
-29
lines changed

.github/workflows/deploy.yml

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [ main ]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build-and-deploy:
1013
runs-on: ubuntu-latest
@@ -33,37 +36,19 @@ jobs:
3336
uses: actions/setup-node@v3
3437
with:
3538
node-version: 18
36-
- name: Install Antora CLI and extensions
37-
run: |
38-
npm install --no-audit --prefer-offline \
39-
@antora/cli \
40-
@antora/site-generator-default \
41-
42-
43-
44-
asciidoctor-kroki
45-
chmod +x ./node_modules/.bin/antora
46-
47-
# 5. Build AAS Specs using its playbook
48-
- name: Build AAS Specs site
49-
run: |
50-
npx antora aas-specifications/antora-playbook.yml --to-dir=build/site/aas-specifications
51-
52-
# 6. Build Submodel Templates using its playbook
53-
- name: Build Submodel Templates site
54-
run: |
55-
npx antora idta-submodel-templates/antora-playbook.yml --to-dir=build/site/idta-submodel-templates
39+
cache: 'npm'
40+
41+
- name: Install dependencies
42+
run: npm ci
5643

57-
# 7. Copy umbrella dashboard index
58-
- name: Copy Dashboard
44+
# 5. Build the site using the umbrella playbook
45+
- name: Build site
5946
run: |
60-
mkdir -p build/site
61-
cp index.html build/site/index.html
47+
npx antora antora-playbook.yml --to-dir=build/site
6248
63-
# 8. Deploy combined site to GitHub Pages
49+
# 6. Deploy to GitHub Pages
6450
- name: Deploy to GitHub Pages
65-
uses: peaceiris/actions-gh-pages@v3
51+
uses: JamesIves/github-pages-deploy-action@v4
6652
with:
67-
github_token: ${{ secrets.GITHUB_TOKEN }}
68-
publish_dir: build/site
69-
publish_branch: gh-pages
53+
folder: build/site
54+
branch: gh-pages

0 commit comments

Comments
 (0)