-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37046 from gsmet/quarkiverse-doc-template
Adjust Quarkiverse Antora doc templates a bit
- Loading branch information
Showing
15 changed files
with
718 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ain/resources/codestarts/quarkus-extension/code/quarkiverse/java/docs/antora.tpl.qute.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: {namespace.id}{extension.id} | ||
title: {extension.full-name} | ||
title: {extension.name} | ||
version: dev | ||
nav: | ||
- modules/ROOT/nav.adoc |
2 changes: 1 addition & 1 deletion
2
...rts/quarkus-extension/code/quarkiverse/java/docs/modules/ROOT/nav.tpl.qute.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* xref:index.adoc[{extension.full-name}] | ||
* xref:index.adoc[Getting started] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...oIT/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_build.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
paths-ignore: | ||
- '.gitignore' | ||
- 'CODEOWNERS' | ||
- 'LICENSE' | ||
- '*.md' | ||
- '*.adoc' | ||
- '*.txt' | ||
- '.all-contributorsrc' | ||
pull_request: | ||
paths-ignore: | ||
- '.gitignore' | ||
- 'CODEOWNERS' | ||
- 'LICENSE' | ||
- '*.md' | ||
- '*.adoc' | ||
- '*.txt' | ||
- '.all-contributorsrc' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
name: Build on ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# os: [windows-latest, macos-latest, ubuntu-latest] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Prepare git | ||
run: git config --global core.autocrlf false | ||
if: startsWith(matrix.os, 'windows') | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
cache: 'maven' | ||
|
||
- name: Build with Maven | ||
run: mvn -B clean install -Dno-format | ||
|
||
- name: Build with Maven (Native) | ||
run: mvn -B install -Dnative -Dquarkus.native.container-build -Dnative.surefire.skip |
33 changes: 33 additions & 0 deletions
33
...stCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_pre-release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Quarkiverse Pre Release | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/project.yml' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: pre release | ||
|
||
steps: | ||
- uses: radcortez/project-metadata-action@master | ||
name: retrieve project metadata | ||
id: metadata | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
metadata-file-path: '.github/project.yml' | ||
|
||
- name: Validate version | ||
if: contains(steps.metadata.outputs.current-version, 'SNAPSHOT') | ||
run: | | ||
echo '::error::Cannot release a SNAPSHOT version.' | ||
exit 1 |
60 changes: 60 additions & 0 deletions
60
...teQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_quarkus-snapshot.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: "Quarkus ecosystem CI" | ||
on: | ||
workflow_dispatch: | ||
watch: | ||
types: [started] | ||
|
||
# For this CI to work, ECOSYSTEM_CI_TOKEN needs to contain a GitHub with rights to close the Quarkus issue that the user/bot has opened, | ||
# while 'ECOSYSTEM_CI_REPO_PATH' needs to be set to the corresponding path in the 'quarkusio/quarkus-ecosystem-ci' repository | ||
|
||
env: | ||
ECOSYSTEM_CI_REPO: quarkusio/quarkus-ecosystem-ci | ||
ECOSYSTEM_CI_REPO_FILE: context.yaml | ||
JAVA_VERSION: 11 | ||
|
||
######################### | ||
# Repo specific setting # | ||
######################### | ||
|
||
ECOSYSTEM_CI_REPO_PATH: quarkiverse-my-quarkiverse-ext | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
name: "Build against latest Quarkus snapshot" | ||
runs-on: ubuntu-latest | ||
# Allow <ADMIN> to manually launch the ecosystem CI in addition to the bots | ||
if: github.actor == 'quarkusbot' || github.actor == 'quarkiversebot' || github.actor == '<ADMIN>' | ||
|
||
steps: | ||
- name: Install yq | ||
uses: dcarbone/install-yq-action@v1.0.1 | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: ${{ env.JAVA_VERSION }} | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
path: current-repo | ||
|
||
- name: Checkout Ecosystem | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ env.ECOSYSTEM_CI_REPO }} | ||
path: ecosystem-ci | ||
|
||
- name: Setup and Run Tests | ||
run: ./ecosystem-ci/setup-and-test | ||
env: | ||
ECOSYSTEM_CI_TOKEN: ${{ secrets.ECOSYSTEM_CI_TOKEN }} |
74 changes: 74 additions & 0 deletions
74
...T/testCreateQuarkiverseExtension/quarkus-my-quarkiverse-ext_.github_workflows_release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Quarkiverse Release | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
paths: | ||
- '.github/project.yml' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: release | ||
if: ${{github.event.pull_request.merged == true}} | ||
|
||
steps: | ||
- uses: radcortez/project-metadata-action@main | ||
name: Retrieve project metadata | ||
id: metadata | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
metadata-file-path: '.github/project.yml' | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Import GPG key | ||
id: import_gpg | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
cache: 'maven' | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
|
||
- name: Configure Git author | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
- name: Update latest release version in docs | ||
run: | | ||
mvn -B -ntp -pl docs -am generate-resources -Denforcer.skip -Dformatter.skip -Dimpsort.skip | ||
if ! git diff --quiet docs/modules/ROOT/pages/includes/attributes.adoc; then | ||
git add docs/modules/ROOT/pages/includes/attributes.adoc | ||
git commit -m "Update the latest release version ${{steps.metadata.outputs.current-version}} in documentation" | ||
fi | ||
- name: Maven release ${{steps.metadata.outputs.current-version}} | ||
run: | | ||
mvn -B release:prepare -Prelease -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} | ||
mvn -B release:perform -Darguments=-DperformRelease -DperformRelease -Prelease | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
|
||
- name: Push changes to ${{github.base_ref}} branch | ||
run: | | ||
git push | ||
git push origin ${{steps.metadata.outputs.current-version}} |
Oops, something went wrong.