Skip to content

Commit

Permalink
Restore github action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Belin committed Oct 27, 2023
1 parent bed9e49 commit e37cb9a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/publish-3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
description: 'Interlok Version (e.g. 3.12.0.3-RELEASE)'
type: string
required: true
push:

jobs:
build:
Expand All @@ -19,7 +18,7 @@ jobs:
uses: actions/checkout@v3
with:
ref: support/3.12.x
token: ${{ secrets.INTERLOKDEV_GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
Expand All @@ -28,4 +27,18 @@ jobs:
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 e37cb9a

Please sign in to comment.