Skip to content

Commit

Permalink
Create oss.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n authored Aug 10, 2022
1 parent cdbfa01 commit a807904
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/oss.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Publish OSS Conductor release to Maven Central
on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment: prod
name: Gradle Build and Publish OSS Conductor Fork
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Zulu JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Publish
run: |
export CONDUCTOR_VERSION=0.0.0.6
echo "CONDUCTOR_VERSION is $CONDUCTOR_VERSION"
echo "Tag to checkout and publish v$CONDUCTOR_VERSION"
git clone -b v$CONDUCTOR_VERSION https://github.com/orkes-io/conductor.git
cd conductor
git checkout tags/v$CONDUCTOR_VERSION
git describe --tags --abbrev=0
ls -ltr
echo "Updating build.gradle - and printing its content"
cat ../deploy.gradle
cp ../deploy.gradle .
echo "apply from: "\"\$rootDir/deploy.gradle\""" >> build.gradle
cat build.gradle
cat deploy.gradle
echo "Here is where we do a build and release"
./gradlew -x test publish -PmavenCentral -Pusername=${{ secrets.SONATYPE_USERNAME }} -Ppassword=${{ secrets.SONATYPE_PASSWORD }}
echo "All done"
env:
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

0 comments on commit a807904

Please sign in to comment.