publish snapshot versions on main merge
This commit is contained in:
parent
4cf9dfccae
commit
94647a36a2
|
|
@ -9,9 +9,9 @@ name: Java CI with Gradle
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master, main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master, main ]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -32,3 +32,15 @@ jobs:
|
||||||
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
|
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
|
||||||
with:
|
with:
|
||||||
arguments: build
|
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 }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue