publish snapshot versions on main merge

This commit is contained in:
Justin Abrahms 2022-04-27 16:06:27 -07:00 committed by GitHub
parent 4cf9dfccae
commit 94647a36a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 2 deletions

View File

@ -9,9 +9,9 @@ name: Java CI with Gradle
on:
push:
branches: [ master ]
branches: [ master, main ]
pull_request:
branches: [ master ]
branches: [ master, main ]
permissions:
contents: read
@ -32,3 +32,15 @@ jobs:
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
with:
arguments: build
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
with:
arguments: publish
env:
snapshot: 1
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}