Skip to content

Commit e7d2daa

Browse files
authored
Merge pull request #1409 from grails/mavenSyncWorkflow
Setup Maven Central Sync Workflow
2 parents 8a9a0ba + d0a25a8 commit e7d2daa

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/central-sync.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Maven Central Sync
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
release_version:
6+
description: 'Release version (eg: 1.2.3)'
7+
required: true
8+
jobs:
9+
central-sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
with:
15+
ref: v${{ github.event.inputs.release_version }}
16+
- uses: gradle/wrapper-validation-action@v1
17+
- name: Set up JDK
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 1.8
21+
- name: Syncs with Maven Central/Sonatype
22+
env:
23+
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
24+
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
25+
run: |
26+
./gradlew synchronizeWithMavenCentral --no-daemon

0 commit comments

Comments
 (0)