Build on commit also for snapshot branch
This commit is contained in:
13
.github/workflows/build-on-commit.yaml
vendored
13
.github/workflows/build-on-commit.yaml
vendored
@@ -3,6 +3,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- snapshot
|
- snapshot
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./template
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -25,6 +30,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout current repository
|
- name: Checkout current repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
repository: openrndr/openrndr-template
|
||||||
|
path: ./template
|
||||||
|
ref: snapshot
|
||||||
|
|
||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
@@ -48,5 +58,6 @@ jobs:
|
|||||||
run: ./gradlew publishToMavenLocal snapshot
|
run: ./gradlew publishToMavenLocal snapshot
|
||||||
|
|
||||||
- name: Build template
|
- name: Build template
|
||||||
working-directory: ./
|
working-directory: ./template
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user