From 02105d8b00465e0a854b01014f9966d4ffd8a770 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sat, 22 Apr 2023 23:28:50 -0700 Subject: [PATCH] Publish Java Client to GitHub Packages --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7f952b9 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: publish +on: + push: + branches: + - main +jobs: + java: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Publish with Gradle + uses: gradle/gradle-build-action@v2 + with: + arguments: publishAllPublicationsToGitHubPackagesRepository + build-root-directory: Clients/Java + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"