Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mongodb] Update common files for branch master #98

Merged
merged 1 commit into from
Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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