Skip to content

Commit

Permalink
ci: update plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Oct 8, 2024
1 parent 15bfe56 commit c7d718f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/dokka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3

- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
Expand All @@ -24,13 +22,16 @@ jobs:
17
21
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: dokkaHtmlMultiModule
cache-read-only: false

- name: Build with Gradle
run: ./gradlew dokkaHtmlMultiModule

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./build/dokka/htmlMultiModule

Expand All @@ -49,4 +50,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
18 changes: 7 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3

- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: zulu
distribution: temurin
java-version: |
8
16
17
21
- name: Print Java Toolchain
uses: gradle/gradle-build-action@v2
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: javaToolchains
cache-read-only: false

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
run: ./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
with:
arguments: publish

0 comments on commit c7d718f

Please sign in to comment.