Skip to content

Fix for GitHub Actions and Removing some duplicate files #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 157 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
693aead
Merge pull request #1 from ttelang/patch-1
ttelang Feb 22, 2024
eeb29ba
Merge pull request #2 from ttelang/patch-2
ttelang Feb 22, 2024
09916ad
Update index.adoc
ttelang Feb 22, 2024
b19c677
Create README.md
ttelang Feb 22, 2024
550fc8e
Add files via upload
ttelang Feb 22, 2024
9859cba
Rename MicroProfile e-Commerce Application.drawio.png to FigureFM-1.png
ttelang Feb 22, 2024
befd8ea
Merge pull request #3 from ttelang/ttelang-preface
ttelang Feb 22, 2024
1243d46
Rename FigureFM-1.png to figureFM-1.png
ttelang Feb 22, 2024
47ac1c1
Update index.adoc
ttelang Feb 22, 2024
7068fe9
Merge pull request #4 from ttelang/ttelang-preface
ttelang Feb 22, 2024
84306ab
Merge branch 'eclipse:main' into main
ttelang Feb 25, 2024
868b9f6
Adding Mindmap image
ttelang Feb 25, 2024
045f2e8
Create chapter01/chapter01.adoc
ttelang Feb 25, 2024
daa9b34
Update chapter01.adoc
ttelang Mar 1, 2024
9eee901
Update chapter01/chapter01.adoc
ttelang Mar 1, 2024
fa2be64
Update chapter01.adoc
ttelang Mar 1, 2024
4a46396
Update chapter01.adoc
ttelang Mar 1, 2024
9e9a446
Update chapter01.adoc
ttelang Mar 1, 2024
2a329c6
Update chapter01.adoc
ttelang Mar 1, 2024
c5600c2
Update chapter01.adoc
ttelang Mar 1, 2024
f21ccd1
Update chapter01.adoc
ttelang Mar 1, 2024
f69f64d
Update chapter01.adoc
ttelang Mar 1, 2024
c704f11
Fix for https://github.com/eclipse/microprofile-tutorial/pull/5#discu…
ttelang Mar 1, 2024
70609ee
Fix for https://github.com/eclipse/microprofile-tutorial/pull/5#discu…
ttelang Mar 1, 2024
e3b5a67
Fix for https://github.com/eclipse/microprofile-tutorial/pull/5#discu…
ttelang Mar 1, 2024
6244454
Merge pull request #5 from ttelang/main
ttelang Mar 1, 2024
8593aff
Fix for https://github.com/eclipse/microprofile-tutorial/pull/5#discu…
ttelang Mar 1, 2024
36600b5
Fix for https://github.com/eclipse/microprofile-tutorial/pull/5#discu…
ttelang Mar 1, 2024
0bcf66b
Fix for https://github.com/eclipse/microprofile-tutorial/pull/5#discu…
ttelang Mar 1, 2024
e6dcc89
Update index.adoc
ttelang Mar 1, 2024
73327eb
Update index.adoc
ttelang Mar 1, 2024
58aa28c
Create chapter02.adoc
ttelang Mar 1, 2024
5743254
Build Tools - Update chapter02.adoc
ttelang Mar 1, 2024
a85f525
Update chapter02.adoc
ttelang Mar 1, 2024
76202ea
Update chapter02.adoc
ttelang Mar 1, 2024
36d7890
Update chapter02.adoc
ttelang Mar 1, 2024
4b13bee
Update chapter02.adoc
ttelang Mar 2, 2024
c73492f
Update chapter02.adoc
ttelang Mar 2, 2024
d8b35fb
Update chapter02.adoc
ttelang Mar 2, 2024
73ef2da
Update chapter02.adoc
ttelang Mar 2, 2024
1406429
Update chapter02.adoc
ttelang Mar 2, 2024
7389507
Merge pull request #6 from ttelang/chapter01
ttelang Mar 2, 2024
60f2e96
Create chapter02-01.adoc - Creating a Java Project for MicroProfile D…
ttelang Mar 2, 2024
791dd6c
Update chapter02-01.adoc
ttelang Mar 2, 2024
fc97c39
Create chapter02-02.adoc
ttelang Mar 2, 2024
545ad3e
Update chapter02-02.adoc
ttelang Mar 2, 2024
681eb25
Update chapter02-02.adoc
ttelang Mar 2, 2024
6ff24c7
Create chapter02-03.adoc
ttelang Mar 2, 2024
1de7a7f
Update chapter02-03.adoc
ttelang Mar 2, 2024
ddce970
Update chapter02-03.adoc
ttelang Mar 2, 2024
2d5ff63
Create chapter02-05.adoc
ttelang Mar 2, 2024
23e39dc
Create chapter02-06.adoc - Glossary
ttelang Mar 2, 2024
2c524fc
Create chatper02-04.adoc
ttelang Mar 2, 2024
3016d88
Rename chapter02.adoc to chapter02-00.adoc
ttelang Mar 2, 2024
7982e20
Update chapter02-02.adoc
ttelang Mar 2, 2024
e55e48f
Update chapter02-00.adoc
ttelang Mar 2, 2024
e8ce9f2
Update chapter02-00.adoc
ttelang Mar 2, 2024
ed3c12e
Update chapter02-01.adoc
ttelang Mar 2, 2024
2341422
Update chapter02-02.adoc
ttelang Mar 2, 2024
c87354e
Update chatper02-04.adoc
ttelang Mar 2, 2024
6284599
Update chapter02-03.adoc
ttelang Mar 2, 2024
50435cc
Update chatper02-04.adoc
ttelang Mar 2, 2024
b8a85c3
Update chatper02-04.adoc
ttelang Mar 2, 2024
32c8813
Merge pull request #7 from ttelang/chapter02
ttelang Mar 3, 2024
f2dfa86
Add files via upload
ttelang Mar 3, 2024
e2299f8
Delete images/MicroProfile e-Commerce Application.drawio.png
ttelang Mar 3, 2024
f5ab37f
Delete images/figureFM-1.png
ttelang Mar 3, 2024
d94baa4
Delete images/FM-1 MicroProfile e-Commerce Application.drawio
ttelang Mar 3, 2024
1e7393b
Add files via upload
ttelang Mar 3, 2024
cca26d8
Rename MicroProfile e-Commerce Application.drawio (1).png to figureFM…
ttelang Mar 3, 2024
5accd8d
Add files via upload
ttelang Mar 3, 2024
4763550
Update index.adoc
ttelang Mar 3, 2024
bd8a3a6
Merge branch 'main' into ttelang-preface
ttelang Mar 3, 2024
0d778d2
Merge pull request #8 from ttelang/ttelang-preface
ttelang Mar 3, 2024
38bca7f
Create antora.yml
ttelang Mar 4, 2024
6b863d3
Create playbook.yml
ttelang Mar 4, 2024
eea1a8b
Merge pull request #9 from ttelang/antora-1
ttelang Mar 4, 2024
0fc5e84
Create antora.yml to configure the tutorial site
ttelang Apr 1, 2025
8e39508
Create nav.adoc
ttelang Apr 1, 2025
91432f7
Create site.yml for GitLab-Hosted UI Bundle
ttelang Apr 1, 2025
67f8122
Update navigation structure in nav.adoc
ttelang Apr 1, 2025
5f1e960
Update navigation structure in nav.adoc
ttelang Apr 1, 2025
2e9348b
Update navigation structure in nav.adoc
ttelang Apr 1, 2025
6a59b55
Update site.yml
ttelang Apr 1, 2025
e5a49b1
Renaming chapter08
ttelang Apr 1, 2025
dedde23
Changes to be committed:
ttelang Apr 1, 2025
66cecb5
Changes to be committed:
ttelang Apr 1, 2025
1f2536b
Update antora.yml to include start_path for module resolution
ttelang Apr 1, 2025
a34f887
Changes to be committed:
ttelang Apr 1, 2025
a08eba9
Changes to be committed:
ttelang Apr 1, 2025
61b1209
Changes to be committed:
ttelang Apr 1, 2025
fc92ee1
Changes to be committed:
ttelang Apr 1, 2025
e37b337
Changes to be committed:
ttelang Apr 1, 2025
0c468ad
Changes to be committed:
ttelang Apr 1, 2025
c0771cf
Changes to be committed:
ttelang Apr 1, 2025
721759f
Changes to be committed:
ttelang Apr 1, 2025
4874a39
Changes to be committed:
ttelang Apr 1, 2025
396f295
Changes to be committed:
ttelang Apr 1, 2025
f65af2c
Changes to be committed:
ttelang Apr 1, 2025
1746c9e
Changes to be committed:
ttelang Apr 1, 2025
ec5d1f9
Changes to be committed:
ttelang Apr 1, 2025
6407524
Changes to be committed:
ttelang Apr 1, 2025
ec9a50d
Changes to be committed:
ttelang Apr 1, 2025
8ab9a50
Changes to be committed:
ttelang Apr 1, 2025
a2a46aa
Changes to be committed:
ttelang Apr 1, 2025
b34aa7d
Changes to be committed:
ttelang Apr 1, 2025
048533d
Changes to be committed:
ttelang Apr 1, 2025
4c39c3a
Changes to be committed:
ttelang Apr 1, 2025
4829276
Merge branch 'main' into patch-15
ttelang Apr 3, 2025
3dcb5a5
Merge pull request #12 from ttelang/patch-15
ttelang Apr 3, 2025
b60557f
Create static.yml
ttelang Apr 30, 2025
fb332aa
Update site configuration for MicroProfile tutorial
ttelang Apr 8, 2025
fbe9841
adding site content and enhance documentation for multiple chapters
ttelang Apr 8, 2025
11dc98a
Update chapter11.adoc
ttelang Apr 30, 2025
434521c
Update chapter10.adoc
ttelang Apr 30, 2025
e8a2a49
Update index.adoc
ttelang May 18, 2025
fb984ca
Update chapter02-01.adoc
ttelang May 18, 2025
102383e
Update chapter02-00.adoc
ttelang May 18, 2025
74aa04b
Update chapter01.adoc
ttelang May 18, 2025
7940fd9
Update chapter02-03.adoc
ttelang May 18, 2025
f32f6ec
Update chapter02-04.adoc
ttelang May 18, 2025
df0d593
Update chapter02-05.adoc
ttelang May 19, 2025
d4eeb2a
Update chapter03.adoc - Minor formatting changs
ttelang May 20, 2025
119964e
Update chapter02-01.adoc
ttelang May 20, 2025
adfb8f5
Update chapter02-03.adoc
ttelang May 20, 2025
f65ae48
Update chapter02-05.adoc
ttelang May 20, 2025
9b1b43e
Update chapter03.adoc
ttelang May 21, 2025
735e31a
Update chapter04.adoc
ttelang May 23, 2025
5ac528d
Update chapter04.adoc
ttelang May 23, 2025
09a4918
Update sitemap.xml and site.yml for latest content and UI bundle URL
ttelang May 26, 2025
c09dcfc
Update sitemap and add development scripts
ttelang May 27, 2025
9350521
Update README and sitemap with latest modification dates
ttelang May 27, 2025
7a64ac9
Update chapter07.adoc
ttelang Jun 1, 2025
d2824f1
Update chapter08.adoc
ttelang Jun 1, 2025
8a9e3a4
Updating antora.yml - Improving Workflow for Antora Site Generation
ttelang Jun 18, 2025
d961f41
Update chapter01.adoc
ttelang Jun 21, 2025
1cc8c64
Delete chapter01 directory
ttelang Jun 21, 2025
289600a
Delete chapter02 directory
ttelang Jun 21, 2025
63f9496
Delete chapter08 directory
ttelang Jun 21, 2025
17499b2
Delete chapter10 directory
ttelang Jun 21, 2025
07e6d90
Delete chapter11 directory
ttelang Jun 21, 2025
2ae3e27
Update Node.js version to 16 in Antora workflow
ttelang Jun 21, 2025
7659187
Merge branch 'main' into patch-20
ttelang Jun 21, 2025
e8766c7
Merge pull request #21 from ttelang/patch-20
ttelang Jun 21, 2025
66f340f
Merge pull request #20 from ttelang/patch-21
ttelang Jun 21, 2025
99b5709
Refactor Antora installation to use local packages and npx for execution
ttelang Jun 21, 2025
40a2113
Merge pull request #22 from ttelang/patch-21
ttelang Jun 21, 2025
996bf12
Update GitHub Actions workflow to use latest action versions and Node…
ttelang Jun 21, 2025
63d6ef5
Add deployment step to GitHub Pages in Antora workflow
ttelang Jun 21, 2025
8512f99
Merge pull request #23 from ttelang/patch-21
ttelang Jun 21, 2025
72b5b1b
Add permissions for authentication and content access in Antora workflow
ttelang Jun 21, 2025
2fe23ca
Merge pull request #24 from ttelang/patch-21
ttelang Jun 21, 2025
318973c
Add permissions for GitHub Pages deployment in Antora workflow
ttelang Jun 21, 2025
913e799
Merge pull request #25 from ttelang/patch-21
ttelang Jun 21, 2025
bb25f2c
Update branch reference in fix-edit-links script to main
ttelang Jun 21, 2025
3686312
Update SEO description and add GitHub Actions workflow documentation …
ttelang Jun 21, 2025
7885375
Merge branch 'main' into patch-21
ttelang Jun 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions .github/workflows/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,36 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # Required for authentication
contents: read # Required to read repository contents
pages: write # Required to deploy to GitHub Pages
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v3

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

- name: Install Antora
run: npm install -g @antora/cli @antora/site-generator-default
- name: Install Antora Locally
run: npm install @antora/cli @antora/site-generator-default

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

- name: Generate Site with Antora
run: antora --fetch --stacktrace playbook.yml
run: npx antora --fetch --stacktrace playbook.yml

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload Antora Site to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/site # The default output directory for Antora
publish_branch: gh-pages # The target branch for GitHub Pages
path: ./build/site # The output directory for Antora

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
66 changes: 65 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ site:
title: MicroProfile Tutorial
url: https://microprofile.io
keys:
seo_description: Comprehensive tutorial for learning Eclipse MicroProfile
seo_description: Comprehensive tutorial for learning MicroProfile
seo_keywords: microprofile, java, cloud-native, microservices
----

Expand All @@ -709,7 +709,9 @@ ui:
url: ./path/to/local/ui-bundle.zip
snapshot: true
----

Replease _./path/to/local/ui-bundle.zip_ with actual path to your local UI bundle under development.

This approach is useful when developing your own UI bundle or testing modifications.

### UI Bundle Development
Expand Down Expand Up @@ -743,3 +745,65 @@ When troubleshooting UI problems:
2. Check the browser console for JavaScript errors
3. Verify that all required resources are loading correctly
4. Test with different browsers to identify browser-specific issues

## GitHub Actions Workflow for Deployment

The documentation site is automatically built and deployed using GitHub Actions. Below is an overview of the workflow:

### Workflow Configuration

The workflow is defined in `.github/workflows/antora.yml` and includes the following steps:

1. **Checkout Repository**:
Uses the `actions/checkout@v3` action to fetch the repository.

2. **Set up Node.js**:
Configures Node.js version `18` using `actions/setup-node@v3`.

3. **Install Antora Locally**:
Installs Antora CLI and site generator locally:
```bash
npm install @antora/cli @antora/site-generator-default
```

4. **Verify Antora Installation**:
Ensures the required packages are installed:
```bash
npm list @antora/cli @antora/site-generator-default || echo "Antora packages are not installed."
```

5. **Generate Site with Antora**:
Builds the site using the playbook:
```bash
npx antora --fetch --stacktrace playbook.yml
```

6. **Setup Pages**:
Configures GitHub Pages using `actions/configure-pages@v4`.

7. **Upload Site to GitHub Pages**:
Uploads the generated site artifact using `actions/upload-pages-artifact@v3`.

8. **Deploy to GitHub Pages**:
Deploys the site using `actions/deploy-pages@v4`.

### Permissions

The workflow requires the following permissions:
- `id-token: write` for authentication.
- `contents: read` to access repository contents.
- `pages: write` to deploy the site to GitHub Pages.

### Deployment URL

After a successful deployment, the site is available at:
```
https://<username>.github.io/<repository-name>/
```
Replace `<username>` (for e.g. microprofile) with your GitHub username and `<repository-name>` (for e.g. microprofile-tutorial) with the name of your repository.

The production branch url for the MicroProfile Tutorial documentation would be:

```
https://microprofile.github.io/microprofile-tutorial/
```
2 changes: 1 addition & 1 deletion antora-assembler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ antora:
output_format: pdf

output:
dir: ./build/site
dir: ./build/site
Loading