Skip to content

Commit

Permalink
Merge pull request #4 from daberkow/update/github_actions_2024
Browse files Browse the repository at this point in the history
Update github actions
  • Loading branch information
daberkow authored Jun 22, 2024
2 parents 046cb26 + 4bad04c commit 8d91a60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ jobs:

steps:
- name: Checkout latest code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 11
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Publish package
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: publish
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Publish with Gradle
run: ./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,26 @@ jobs:
runs-on: ${{ matrix.os }}
# runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Setup and execute Gradle 'test' task
uses: gradle/gradle-build-action@v2
with:
arguments: clean build test --scan
uses: gradle/gradle-build-action@v3
- name: Publish with Gradle
run: ./gradlew clean build test --scan
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSPHRASE: ${{ secrets.GPG_SIGNING_PASSPHRASE }}
- name: Upload build reports
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always() # always run even if the previous step fails
with:
name: build-reports
path: build/reports/
- name: Upload Test XML Files
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always() # always run even if the previous step fails
with:
name: test-xmls
Expand Down

0 comments on commit 8d91a60

Please sign in to comment.