From b3477746774511d20c57e6e0fbaca1daf29b870e Mon Sep 17 00:00:00 2001 From: Michael Kimberlin Date: Mon, 25 Mar 2024 11:59:47 -0500 Subject: [PATCH] Add publish workflow --- .github/workflows/gradle-build-publish.yml | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/gradle-build-publish.yml diff --git a/.github/workflows/gradle-build-publish.yml b/.github/workflows/gradle-build-publish.yml new file mode 100644 index 0000000000..1f8d1f9e82 --- /dev/null +++ b/.github/workflows/gradle-build-publish.yml @@ -0,0 +1,35 @@ +name: Gradle Publish to GitHub Packages +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v44 + - name: Set up Node 14 + uses: actions/setup-node@v2-beta + with: + node-version: '14' + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Cache Gradle packages + uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: ${{ runner.os }}-gradle + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b + - name: Build with Gradle + uses: gradle/gradle-build-action@4137be6a8bf7d7133955359dbd952c0ca73b1021 + with: + arguments: publish + env: + REACT_APP_API_URL: https://checkins.objectcomputing.com + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}