Skip to content

Commit 22a6ea1

Browse files
committed
Fixing Java CI
1 parent 90f7782 commit 22a6ea1

File tree

1 file changed

+2
-41
lines changed

1 file changed

+2
-41
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
java: [17, 21]
17+
java: [ 17, 21 ]
1818
steps:
1919
- name: "📥 Checkout repository"
2020
uses: actions/checkout@v4
@@ -59,49 +59,10 @@ jobs:
5959
MAVEN_PUBLISH_URL: ${{ secrets.MAVEN_PUBLISH_SNAPSHOT_URL }}
6060
run: ./gradlew publish
6161
- name: "📖 Generate Snapshot Documentation"
62-
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
6362
run: ./gradlew docs
6463
- name: "📤 Publish Snapshot Documentation to Github Pages"
65-
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
6664
uses: apache/grails-github-actions/deploy-github-pages@asf
6765
env:
6866
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6967
GRADLE_PUBLISH_RELEASE: 'false'
70-
SOURCE_FOLDER: build/docs
71-
documenation:
72-
runs-on: ubuntu-latest
73-
needs: [ get-version, release ]
74-
env:
75-
GIT_USER_NAME: ${{ vars.GIT_USER_NAME }}
76-
GIT_USER_EMAIL: ${{ vars.GIT_USER_EMAIL }}
77-
RELEASE_VERSION: ${{ needs.get-version.outputs.version }}
78-
steps:
79-
- uses: actions/checkout@v4
80-
with:
81-
token: ${{ secrets.GITHUB_TOKEN }}
82-
- uses: actions/setup-java@v4
83-
with:
84-
java-version: 11
85-
distribution: temurin
86-
- uses: micronaut-projects/github-actions/export-gradle-properties@master
87-
id: asciidoctor
88-
- name: Setup Gradle
89-
uses: gradle/actions/setup-gradle@v4
90-
- name: Build documentation
91-
run: ./gradlew -Pversion="${{ env.RELEASE_VERSION }}" asciidoctor
92-
- uses: micronaut-projects/github-pages-deploy-action@master
93-
if: success()
94-
env:
95-
BETA: false
96-
TARGET_REPOSITORY: ${{ github.repository }}
97-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
98-
BRANCH: gh-pages
99-
FOLDER: build/asciidoc
100-
DOC_FOLDER: latest
101-
COMMIT_EMAIL: ${{ vars.GIT_USER_EMAIL }}
102-
COMMIT_NAME: ${{ vars.GIT_USER_NAME }}
103-
VERSION: ${{ env.RELEASE_VERSION }}
104-
- uses: micronaut-projects/github-actions/post-release@master
105-
if: success()
106-
with:
107-
token: ${{ secrets.GH_TOKEN }}
68+
SOURCE_FOLDER: build/docs

0 commit comments

Comments
 (0)