Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mkimberlin committed Mar 25, 2024
1 parent 1387892 commit b347774
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/gradle-build-publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit b347774

Please sign in to comment.