Skip to content

Commit

Permalink
[hibernate-validator] Update common files for branch master (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
micronaut-build authored Sep 10, 2020
1 parent 3f9099e commit ae0eb4b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 9 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/bintray-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# WARNING: Do not edit this file directly. Instead, go to:
#
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows
#
# and edit them there. Note that it will be sync'ed to all the Micronaut repos
name: Bintray Publish
on:
workflow_dispatch:
inputs:
release_version:
description: 'Release version (eg: 1.2.3)'
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
ref: v${{ github.event.inputs.release_version }}
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish to Bintray
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
run: ./gradlew bintrayPublish
15 changes: 7 additions & 8 deletions .github/workflows/central-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,24 @@
# and edit them there. Note that it will be sync'ed to all the Micronaut repos
name: Maven Central Sync
on:
release:
types: [published]
workflow_dispatch:
inputs:
release_version:
description: 'Release version (eg: 1.2.3)'
required: true
jobs:
central-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: v${{ github.event.inputs.release_version }}
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Set the current release version
id: release_version
run: |
release_version=${GITHUB_REF:11}
sed -i "s/^projectVersion.*$/projectVersion\=${release_version}/" gradle.properties
echo ::set-output name=release_version::${release_version}
- name: Publish to Sonatype OSSRH
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ jobs:
MICRONAUT_BUILD_EMAIL: ${{ secrets.MICRONAUT_BUILD_EMAIL }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Bintray
- name: Upload to Bintray
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
BINTRAY_PUBLISH: ${{ secrets.BINTRAY_PUBLISH }}
run: ./gradlew bintrayUpload docs
- name: Export Gradle Properties
uses: micronaut-projects/github-actions/export-gradle-properties@master
Expand Down

0 comments on commit ae0eb4b

Please sign in to comment.