Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbrooks committed Jun 29, 2024
1 parent 8dd4646 commit fc8e590
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 8 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
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

0 comments on commit fc8e590

Please sign in to comment.