Skip to content

Commit

Permalink
INTERLOK-4206 Add a new github action to publish 3.12 patch release
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Belin authored and sebastien-belin-adp committed Oct 27, 2023
1 parent c0e4d48 commit c5ffe76
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/publish-3.12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish 3.12 Release

on:
workflow_dispatch:
inputs:
interlok-version:
description: 'Interlok Version (e.g. 3.12.0.3-RELEASE)'
type: string
required: true

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: support/3.12.x
token: ${{ secrets.INTERLOKDEV_GITHUB_TOKEN }}
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
java-version: 1.8
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
- name: Gradle Build and Publish
run: |
echo "default.jdbc.storedproc.tests.enabled=false" >> ./interlok-core/build.properties
echo "junit.jms.tests.enabled=false" >> ./interlok-core/build.properties
./gradlew -Djava.security.egd=file:/dev/./urandom -Dorg.gradle.console=plain --no-daemon -PverboseTests=true test publish -PinterlokCoreVersion=${{ inputs.interlok-version }} -PreleaseVersion=${{ inputs.interlok-version }} -PmavenPublishUrl=https://nexus.adaptris.net/nexus/content/repositories/releases
env:
ORG_GRADLE_PROJECT_repoUsername: deployment
ORG_GRADLE_PROJECT_repoPassword: ${{ secrets.NEXUS_REPO_PASSWORD }}
- name: Tag
run: |
interlokVersion=${{ inputs.interlok-version }}
# Remove -RELEASE from the version
tagVersion=${interlokVersion/-RELEASE/""}
git tag -a $tagVersion -m "Add tag $tagVersion"
git push origin --tags

0 comments on commit c5ffe76

Please sign in to comment.