Skip to content

Commit 2db6ef7

Browse files
ttelangEmily-Jiang
andauthored
Fix for GitHub Actions and Removing some duplicate files (#33)
* Update index.adoc * Create README.md * Add files via upload * Rename MicroProfile e-Commerce Application.drawio.png to FigureFM-1.png * Rename FigureFM-1.png to figureFM-1.png * Update index.adoc * Adding Mindmap image Uploading Mindmap image for MicroProfile Architecture Philosophy * Create chapter01/chapter01.adoc Adding content for Chapter01 - Introduction to MicroProfile * Update chapter01.adoc Incorporating feedbacks about MicroProfile History from @aeiras * Update chapter01/chapter01.adoc Updating MPWG members * Update chapter01.adoc Need for MicroProfile * Update chapter01.adoc MicroProfile Platform Component Specifications * Update chapter01.adoc Standalone (Outside Umbrella) Specifications * Update chapter01.adoc Standalone (Outside Umbrella) Specifications * Update chapter01.adoc MicroProfile Implementations * Update chapter01.adoc Architecture Philosophy * Update chapter01.adoc Relationship with Jakarta EE specification * Fix for #5 (comment) * Fix for #5 (comment), #5 (comment) * Fix for #5 (comment) * Fix for #5 (comment) * Fix for #5 (comment) * Fix for #5 (comment) * Update index.adoc Co-authored-by: Emily Jiang <[email protected]> * Update index.adoc Co-authored-by: Emily Jiang <[email protected]> * Create chapter02.adoc * Build Tools - Update chapter02.adoc Build Tools * Update chapter02.adoc Setting up your IDE - part 1 * Update chapter02.adoc IDE * Update chapter02.adoc * Update chapter02.adoc IDEs * Update chapter02.adoc Setting up MicroProfile Runtime * Update chapter02.adoc MicroProfile Starter * Update chapter02.adoc MicroProfile Starter * Update chapter02.adoc MP Starter * Create chapter02-01.adoc - Creating a Java Project for MicroProfile Development Chapter02-01 * Update chapter02-01.adoc * Create chapter02-02.adoc * Update chapter02-02.adoc Choosing the Right MicroProfile Module for your Applications * Update chapter02-02.adoc * Create chapter02-03.adoc Developing RESTful Web Services * Update chapter02-03.adoc * Update chapter02-03.adoc * Create chapter02-05.adoc * Create chapter02-06.adoc - Glossary Glossary * Create chatper02-04.adoc * Rename chapter02.adoc to chapter02-00.adoc * Update chapter02-02.adoc * Update chapter02-00.adoc * Update chapter02-00.adoc * Update chapter02-01.adoc * Update chapter02-02.adoc * Update chatper02-04.adoc Testing your microservice * Update chapter02-03.adoc * Update chatper02-04.adoc * Update chatper02-04.adoc * Add files via upload * Delete images/MicroProfile e-Commerce Application.drawio.png * Delete images/figureFM-1.png * Delete images/FM-1 MicroProfile e-Commerce Application.drawio * Add files via upload * Rename MicroProfile e-Commerce Application.drawio (1).png to figureFM-1.png * Add files via upload * Update index.adoc * Create antora.yml * Create playbook.yml * Create antora.yml to configure the tutorial site * Create nav.adoc Creating nav.doc file with full paths in navigation * Create site.yml for GitLab-Hosted UI Bundle * Update navigation structure in nav.adoc * Update navigation structure in nav.adoc * Update navigation structure in nav.adoc * Update site.yml * Renaming chapter08 * Changes to be committed: new file: .devcontainer/devcontainer.json modified: nav.adoc modified: site.yml * Changes to be committed: modified: site.yml * Update antora.yml to include start_path for module resolution * Changes to be committed: modified: antora.yml modified: nav.adoc modified: site.yml * Changes to be committed: modified: antora.yml modified: index.adoc modified: site.yml * Changes to be committed: modified: site.yml Changes not staged for commit: deleted: chatper08/chapter08.adoc * Changes to be committed: modified: antora.yml Changes not staged for commit: deleted: chatper08/chapter08.adoc * Changes to be committed: modified: nav.adoc modified: site.yml * Changes to be committed: modified: site.yml * Changes to be committed: deleted: antora.yml * Changes to be committed: deleted: chatper08/chapter08.adoc * Changes to be committed: new file: antora.yml modified: nav.adoc modified: site.yml * Changes to be committed: modified: antora.yml new file: build/site/404.html new file: build/site/_/css/site.css new file: build/site/_/font/roboto-cyrillic-400-italic.woff2 new file: build/site/_/font/roboto-cyrillic-400-normal.woff2 new file: build/site/_/font/roboto-cyrillic-500-italic.woff2 new file: build/site/_/font/roboto-cyrillic-500-normal.woff2 new file: build/site/_/font/roboto-latin-400-italic.woff new file: build/site/_/font/roboto-latin-400-italic.woff2 new file: build/site/_/font/roboto-latin-400-normal.woff new file: build/site/_/font/roboto-latin-400-normal.woff2 new file: build/site/_/font/roboto-latin-500-italic.woff new file: build/site/_/font/roboto-latin-500-italic.woff2 new file: build/site/_/font/roboto-latin-500-normal.woff new file: build/site/_/font/roboto-latin-500-normal.woff2 new file: build/site/_/font/roboto-mono-latin-400-normal.woff new file: build/site/_/font/roboto-mono-latin-400-normal.woff2 new file: build/site/_/font/roboto-mono-latin-500-normal.woff new file: build/site/_/font/roboto-mono-latin-500-normal.woff2 new file: build/site/_/img/back.svg new file: build/site/_/img/caret.svg new file: build/site/_/img/chevron.svg new file: build/site/_/img/home-o.svg new file: build/site/_/img/home.svg new file: build/site/_/img/menu.svg new file: build/site/_/img/octicons-16.svg new file: build/site/_/js/site.js new file: build/site/_/js/vendor/highlight.js renamed: images/figure1-2.png -> modules/ROOT/assets/figure1-2.png renamed: images/figure4-1.png -> modules/ROOT/assets/figure4-1.png renamed: images/figure8-1.png -> modules/ROOT/assets/figure8-1.png renamed: images/figureFM-1.png -> modules/ROOT/assets/figureFM-1.png renamed: images/src/figure1-2 MP_Arch_Philosophy.drawio -> modules/ROOT/assets/src/figure1-2 MP_Arch_Philosophy.drawio renamed: images/src/figureFM-1.drawio -> modules/ROOT/assets/src/figureFM-1.drawio renamed: README.adoc -> modules/ROOT/pages/README.adoc renamed: chapter01/chapter01.adoc -> modules/ROOT/pages/chapter01/chapter01.adoc renamed: chapter02/chapter02-00.adoc -> modules/ROOT/pages/chapter02/chapter02-00.adoc renamed: chapter02/chapter02-01.adoc -> modules/ROOT/pages/chapter02/chapter02-01.adoc renamed: chapter02/chapter02-02.adoc -> modules/ROOT/pages/chapter02/chapter02-02.adoc renamed: chapter02/chapter02-03.adoc -> modules/ROOT/pages/chapter02/chapter02-03.adoc renamed: chapter02/chapter02-04.adoc -> modules/ROOT/pages/chapter02/chapter02-04.adoc renamed: chapter02/chapter02-05.adoc -> modules/ROOT/pages/chapter02/chapter02-05.adoc renamed: chapter02/chapter02-06.adoc -> modules/ROOT/pages/chapter02/chapter02-06.adoc renamed: chapter03/chapter03.adoc -> modules/ROOT/pages/chapter03/chapter03.adoc renamed: chapter04/chapter04.adoc -> modules/ROOT/pages/chapter04/chapter04.adoc renamed: chapter05/chapter05.adoc -> modules/ROOT/pages/chapter05/chapter05.adoc renamed: chapter06/chapter06.adoc -> modules/ROOT/pages/chapter06/chapter06.adoc renamed: chapter07/chapter07.adoc -> modules/ROOT/pages/chapter07/chapter07.adoc renamed: chapter08/chapter08.adoc -> modules/ROOT/pages/chapter08/chapter08.adoc new file: modules/ROOT/pages/chapter08_file.bak renamed: chapter09/index.adoc -> modules/ROOT/pages/chapter09/index.adoc renamed: index.adoc -> modules/ROOT/pages/index.adoc new file: modules/ROOT/pages/nav.adoc deleted: nav.adoc modified: site.yml * Changes to be committed: modified: modules/ROOT/pages/README.adoc modified: modules/ROOT/pages/chapter01/chapter01.adoc modified: modules/ROOT/pages/chapter04/chapter04.adoc modified: modules/ROOT/pages/chapter08/chapter08.adoc modified: modules/ROOT/pages/index.adoc modified: site.yml * Changes to be committed: modified: modules/ROOT/pages/chapter01/chapter01.adoc modified: site.yml Changes not staged for commit: modified: modules/ROOT/pages/chapter08/chapter08.adoc * Changes to be committed: modified: modules/ROOT/pages/chapter08/chapter08.adoc * Changes to be committed: modified: antora.yml new file: build/site/microprofile-tutorial/latest/README.html renamed: modules/ROOT/assets/figure1-2.png -> build/site/microprofile-tutorial/latest/_images/figure1-2.png renamed: modules/ROOT/assets/figure4-1.png -> build/site/microprofile-tutorial/latest/_images/figure4-1.png renamed: modules/ROOT/assets/figure8-1.png -> build/site/microprofile-tutorial/latest/_images/figure8-1.png renamed: modules/ROOT/assets/figureFM-1.png -> build/site/microprofile-tutorial/latest/_images/figureFM-1.png new file: build/site/microprofile-tutorial/latest/chapter01/chapter01.html new file: build/site/microprofile-tutorial/latest/chapter02/chapter02-00.html new file: build/site/microprofile-tutorial/latest/chapter02/chapter02-01.html new file: build/site/microprofile-tutorial/latest/chapter02/chapter02-02.html new file: build/site/microprofile-tutorial/latest/chapter02/chapter02-03.html new file: build/site/microprofile-tutorial/latest/chapter02/chapter02-04.html new file: build/site/microprofile-tutorial/latest/chapter02/chapter02-05.html new file: build/site/microprofile-tutorial/latest/chapter02/chapter02-06.html new file: build/site/microprofile-tutorial/latest/chapter03/chapter03.html new file: build/site/microprofile-tutorial/latest/chapter04/chapter04.html new file: build/site/microprofile-tutorial/latest/chapter05/chapter05.html new file: build/site/microprofile-tutorial/latest/chapter06/chapter06.html new file: build/site/microprofile-tutorial/latest/chapter07/chapter07.html new file: build/site/microprofile-tutorial/latest/chapter08/chapter08.html new file: build/site/microprofile-tutorial/latest/chapter09/index.html new file: build/site/microprofile-tutorial/latest/index.html new file: build/site/microprofile-tutorial/latest/nav.html new file: modules/ROOT/images/figure1-2.png new file: modules/ROOT/images/figure4-1.png new file: modules/ROOT/images/figure8-1.png new file: modules/ROOT/images/figureFM-1.png modified: modules/ROOT/pages/README.adoc modified: site.yml * Changes to be committed: modified: antora.yml modified: build/site/microprofile-tutorial/latest/README.html modified: build/site/microprofile-tutorial/latest/chapter01/chapter01.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-00.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-01.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-02.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-03.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-04.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-05.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-06.html modified: build/site/microprofile-tutorial/latest/chapter03/chapter03.html modified: build/site/microprofile-tutorial/latest/chapter04/chapter04.html modified: build/site/microprofile-tutorial/latest/chapter05/chapter05.html modified: build/site/microprofile-tutorial/latest/chapter06/chapter06.html modified: build/site/microprofile-tutorial/latest/chapter07/chapter07.html modified: build/site/microprofile-tutorial/latest/chapter08/chapter08.html modified: build/site/microprofile-tutorial/latest/chapter09/index.html modified: build/site/microprofile-tutorial/latest/index.html modified: modules/ROOT/pages/chapter02/chapter02-04.adoc modified: modules/ROOT/pages/chapter03/chapter03.adoc modified: site.yml * Changes to be committed: modified: antora.yml modified: modules/ROOT/pages/chapter03/chapter03.adoc modified: site.yml * Changes to be committed: new file: build/site/index.html modified: build/site/microprofile-tutorial/latest/README.html modified: build/site/microprofile-tutorial/latest/chapter01/chapter01.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-00.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-01.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-02.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-03.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-04.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-05.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-06.html modified: build/site/microprofile-tutorial/latest/chapter03/chapter03.html modified: build/site/microprofile-tutorial/latest/chapter04/chapter04.html modified: build/site/microprofile-tutorial/latest/chapter05/chapter05.html modified: build/site/microprofile-tutorial/latest/chapter06/chapter06.html modified: build/site/microprofile-tutorial/latest/chapter07/chapter07.html modified: build/site/microprofile-tutorial/latest/chapter08/chapter08.html modified: build/site/microprofile-tutorial/latest/chapter09/index.html modified: build/site/microprofile-tutorial/latest/index.html * Changes to be committed: modified: build/site/microprofile-tutorial/latest/chapter08/chapter08.html new file: index.adoc new file: minimal-component/antora.yml modified: modules/ROOT/pages/chapter08/chapter08.adoc new file: nav.adoc * Changes to be committed: modified: build/site/microprofile-tutorial/latest/README.html modified: build/site/microprofile-tutorial/latest/chapter01/chapter01.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-00.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-01.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-02.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-03.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-04.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-05.html modified: build/site/microprofile-tutorial/latest/chapter02/chapter02-06.html new file: build/site/microprofile-tutorial/latest/chapter02/chapter02.html modified: build/site/microprofile-tutorial/latest/chapter03/chapter03.html modified: build/site/microprofile-tutorial/latest/chapter04/chapter04.html modified: build/site/microprofile-tutorial/latest/chapter05/chapter05.html modified: build/site/microprofile-tutorial/latest/chapter06/chapter06.html modified: build/site/microprofile-tutorial/latest/chapter07/chapter07.html modified: build/site/microprofile-tutorial/latest/chapter08/chapter08.html modified: build/site/microprofile-tutorial/latest/chapter09/index.html new file: build/site/microprofile-tutorial/latest/chapter10/chapter10.html new file: build/site/microprofile-tutorial/latest/chapter11/chapter11.html modified: build/site/microprofile-tutorial/latest/index.html new file: modules/ROOT/pages/chapter02/chapter02.adoc deleted: modules/ROOT/pages/chapter08_file.bak new file: modules/ROOT/pages/chapter10/chapter10.adoc new file: modules/ROOT/pages/chapter11/chapter11.adoc modified: modules/ROOT/pages/nav.adoc modified: nav.adoc * Changes to be committed: new file: antora-assembler.yml modified: antora.yml deleted: nav.adoc new file: package.json modified: site.yml * Create static.yml * Update site configuration for MicroProfile tutorial * adding site content and enhance documentation for multiple chapters - Created a new sitemap.xml file for improved site navigation and SEO. - Updated README.adoc to include instructions for running the site locally. - Standardized chapter headings in chapter03.adoc and chapter04.adoc for consistency. - Enhanced content in chapter06.adoc, chapter07.adoc, chapter10.adoc, and chapter11.adoc with clearer headings and improved structure. - Updated navigation links in nav.adoc for better clarity and organization. * Update chapter11.adoc * Update chapter10.adoc * Update index.adoc grammar and styling fixes to index.adoc (Front matter of this Tutorial) * Update chapter02-01.adoc Minor formatting changes * Update chapter02-00.adoc * Update chapter01.adoc Removing `Chapter 1` from title * Update chapter02-03.adoc Minor formating changes * Update chapter02-04.adoc * Update chapter02-05.adoc * Update chapter03.adoc - Minor formatting changs * Update chapter02-01.adoc * Update chapter02-03.adoc * Update chapter02-05.adoc renaming product-catalog * Update chapter03.adoc * Update chapter04.adoc Minor grammatically and formatting changes. * Update chapter04.adoc Minor grammatical and formatting fixes. * Update sitemap.xml and site.yml for latest content and UI bundle URL - Updated last modification dates in sitemap.xml to reflect new content updates. - Changed the UI bundle URL in site.yml to point to the correct repository for the latest release. * Update sitemap and add development scripts - Updated last modified dates in sitemap.xml for all tutorial chapters to reflect recent changes. - Added dev-server.sh script for building and serving the MicroProfile Tutorial documentation with automatic rebuilding on file changes. - Introduced fix-edit-links.sh script to replace local file links with GitHub repository links in generated HTML files. - Added favicon images (PNG and SVG) for the tutorial site. - Updated chapter titles in various AsciiDoc files to remove "Chapter X:" prefix for a cleaner presentation. - Created redirect.html for seamless navigation to the latest tutorial version. - Added supplemental UI assets including favicon images. - Implemented update-repo-url.sh script to automatically update repository URLs in configuration files based on the current Git repository and branch. * Update README and sitemap with latest modification dates * Update chapter07.adoc minor updates * Update chapter08.adoc * Updating antora.yml - Improving Workflow for Antora Site Generation Improving Workflow for Antora Site Generation - Adding check and error handling to ensure if the antore site generator is installed properly. - enabling stacktrace generation for easy troubleshooting. * Update chapter01.adoc * Delete chapter01 directory As the content is now moved to modules/ROOT directory * Delete chapter02 directory As the content is now moved to modules/ROOT directory * Delete chapter08 directory the content is now moved to modules/ROOT directory * Delete chapter10 directory The content is now moved to modules/ROOT directory * Delete chapter11 directory The content is now moved to modules/ROOT directory * Update Node.js version to 16 in Antora workflow * Refactor Antora installation to use local packages and npx for execution * Update GitHub Actions workflow to use latest action versions and Node.js 18 * Add deployment step to GitHub Pages in Antora workflow * Add permissions for authentication and content access in Antora workflow * Add permissions for GitHub Pages deployment in Antora workflow * Update branch reference in fix-edit-links script to main * Update SEO description and add GitHub Actions workflow documentation for deployment --------- Co-authored-by: Emily Jiang <[email protected]>
1 parent 54a8f94 commit 2db6ef7

File tree

17 files changed

+132
-3232
lines changed

17 files changed

+132
-3232
lines changed

.github/workflows/antora.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,36 @@ on:
88
jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write # Required for authentication
13+
contents: read # Required to read repository contents
14+
pages: write # Required to deploy to GitHub Pages
1115
steps:
1216
- name: Checkout Repository
13-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1418

1519
- name: Set up Node.js
16-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v3
1721
with:
18-
node-version: '14' # Use the Node.js version that matches your development environment
22+
node-version: '18' # Use a compatible Node.js version
1923

20-
- name: Install Antora
21-
run: npm install -g @antora/cli @antora/site-generator-default
24+
- name: Install Antora Locally
25+
run: npm install @antora/cli @antora/site-generator-default
2226

2327
- name: Verify Antora Installation
24-
run: npm list -g @antora/cli @antora/site-generator-default || echo "Antora packages are not installed."
28+
run: npm list @antora/cli @antora/site-generator-default || echo "Antora packages are not installed."
2529

2630
- name: Generate Site with Antora
27-
run: antora --fetch --stacktrace playbook.yml
31+
run: npx antora --fetch --stacktrace playbook.yml
2832

29-
- name: Deploy to GitHub Pages
30-
uses: peaceiris/actions-gh-pages@v3
33+
- name: Setup Pages
34+
uses: actions/configure-pages@v4
35+
36+
- name: Upload Antora Site to GitHub Pages
37+
uses: actions/upload-pages-artifact@v3
3138
with:
32-
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: ./build/site # The default output directory for Antora
34-
publish_branch: gh-pages # The target branch for GitHub Pages
39+
path: ./build/site # The output directory for Antora
40+
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

.github/workflows/static.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Single deploy job since we're just deploying
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
# Upload entire repository
40+
path: '.'
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

README.adoc

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ site:
694694
title: MicroProfile Tutorial
695695
url: https://microprofile.io
696696
keys:
697-
seo_description: Comprehensive tutorial for learning Eclipse MicroProfile
697+
seo_description: Comprehensive tutorial for learning MicroProfile
698698
seo_keywords: microprofile, java, cloud-native, microservices
699699
----
700700
@@ -709,7 +709,9 @@ ui:
709709
url: ./path/to/local/ui-bundle.zip
710710
snapshot: true
711711
----
712+
712713
Replease _./path/to/local/ui-bundle.zip_ with actual path to your local UI bundle under development.
714+
713715
This approach is useful when developing your own UI bundle or testing modifications.
714716

715717
### UI Bundle Development
@@ -743,3 +745,65 @@ When troubleshooting UI problems:
743745
2. Check the browser console for JavaScript errors
744746
3. Verify that all required resources are loading correctly
745747
4. Test with different browsers to identify browser-specific issues
748+
749+
## GitHub Actions Workflow for Deployment
750+
751+
The documentation site is automatically built and deployed using GitHub Actions. Below is an overview of the workflow:
752+
753+
### Workflow Configuration
754+
755+
The workflow is defined in `.github/workflows/antora.yml` and includes the following steps:
756+
757+
1. **Checkout Repository**:
758+
Uses the `actions/checkout@v3` action to fetch the repository.
759+
760+
2. **Set up Node.js**:
761+
Configures Node.js version `18` using `actions/setup-node@v3`.
762+
763+
3. **Install Antora Locally**:
764+
Installs Antora CLI and site generator locally:
765+
```bash
766+
npm install @antora/cli @antora/site-generator-default
767+
```
768+
769+
4. **Verify Antora Installation**:
770+
Ensures the required packages are installed:
771+
```bash
772+
npm list @antora/cli @antora/site-generator-default || echo "Antora packages are not installed."
773+
```
774+
775+
5. **Generate Site with Antora**:
776+
Builds the site using the playbook:
777+
```bash
778+
npx antora --fetch --stacktrace playbook.yml
779+
```
780+
781+
6. **Setup Pages**:
782+
Configures GitHub Pages using `actions/configure-pages@v4`.
783+
784+
7. **Upload Site to GitHub Pages**:
785+
Uploads the generated site artifact using `actions/upload-pages-artifact@v3`.
786+
787+
8. **Deploy to GitHub Pages**:
788+
Deploys the site using `actions/deploy-pages@v4`.
789+
790+
### Permissions
791+
792+
The workflow requires the following permissions:
793+
- `id-token: write` for authentication.
794+
- `contents: read` to access repository contents.
795+
- `pages: write` to deploy the site to GitHub Pages.
796+
797+
### Deployment URL
798+
799+
After a successful deployment, the site is available at:
800+
```
801+
https://<username>.github.io/<repository-name>/
802+
```
803+
Replace `<username>` (for e.g. microprofile) with your GitHub username and `<repository-name>` (for e.g. microprofile-tutorial) with the name of your repository.
804+
805+
The production branch url for the MicroProfile Tutorial documentation would be:
806+
807+
```
808+
https://microprofile.github.io/microprofile-tutorial/
809+
```

antora-assembler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ antora:
4343
output_format: pdf
4444

4545
output:
46-
dir: ./build/site
46+
dir: ./build/site

0 commit comments

Comments
 (0)