Skip to content

Commit 2f22ec7

Browse files
authored
Merge pull request #678 from square/rick/auto-publish_snapshots
auto-publish a snapshot after pushing to `main` or `ray/ui-update`
2 parents 617490c + 2af4ad3 commit 2f22ec7

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish snapshot
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
- ray/ui-update
9+
10+
jobs:
11+
publish-snapshot :
12+
runs-on : ubuntu-latest
13+
if : github.repository == 'square/workflow-kotlin'
14+
timeout-minutes : 25
15+
16+
steps :
17+
- uses: actions/checkout@v2
18+
- uses: gradle/wrapper-validation-action@v1
19+
- name: set up JDK 11.0.7
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 11.0.7
23+
24+
- name : Publish Snapshots
25+
run: ./gradlew clean build && ./gradlew publish --no-parallel --no-daemon
26+
env :
27+
ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.SONATYPE_NEXUS_USERNAME }}
28+
ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.SONATYPE_NEXUS_PASSWORD }}

0 commit comments

Comments
 (0)