From fc8e590ec44b85ca1ecc0ad822ed8c692771c27d Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Sat, 29 Jun 2024 10:46:17 -0400 Subject: [PATCH] Update workflows --- .github/workflows/build.yml | 21 ++++++++++++++------- .github/workflows/publish.yml | 13 ++++++++----- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb45bb40..791bb629 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,29 +21,36 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: set up JDK - id: setup-jdk - uses: actions/setup-java@v1 + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v3 with: java-version: 21 distribution: zulu + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + - name: build run: ./gradlew build + - name: archive vgo test results - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: vgo_test_results path: vgo/build/reports/tests/test/ + - name: archive vgo core test results - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: vgo_core_test_results path: vgo-core/build/reports/tests/test/ + - name: release binary run: ./gradlew binary + - name: archive vgo - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: vgo path: vgo/build/libs/vgo diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a17694a7..ad0af8ff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,14 +10,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: set up JDK + - name: Set up a JDK id: setup-jdk - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 21 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Create binary keyring env: GPG_KEY_CONTENTS: ${{ secrets.SIGNING_KEY_SECRET }} @@ -27,8 +30,8 @@ jobs: sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > '$SIGNING_KEY_RING_FILE'" - name: Publish to MavenCentral - run: ./gradlew -Psigning.keyId=${{ secrets.SIGNING_KEY_ID}} -Psigning.password=${{ secrets.SIGNING_KEY_PASSWORD }} -Psigning.secretKeyRingFile=${{ secrets.SIGNING_KEY_FILE_PATH }} --no-parallel --no-daemon publishAllPublicationsToMavenCentralRepository closeAndReleaseRepository env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} - SONATYPE_PROFILE_ID: ${{ secrets.SONATYPE_PROFILE_ID }} \ No newline at end of file + SONATYPE_PROFILE_ID: ${{ secrets.SONATYPE_PROFILE_ID }} + run: ./gradlew -Psigning.keyId=${{ secrets.SIGNING_KEY_ID}} -Psigning.password=${{ secrets.SIGNING_KEY_PASSWORD }} -Psigning.secretKeyRingFile=${{ secrets.SIGNING_KEY_FILE_PATH }} --no-configuration-cache publishAndReleaseToMavenCentral \ No newline at end of file