Skip to content

Commit

Permalink
Publish to Artifactory on release
Browse files Browse the repository at this point in the history
  • Loading branch information
alansemenov authored and ComLock committed Oct 14, 2024
1 parent 05e8cda commit 294498f
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,28 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- uses: actions/setup-java@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: 'temurin'
cache: 'gradle'

- run: ./gradlew build --no-daemon
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Get publishing variables
id: publish_vars
uses: enonic/release-tools/publish-vars@master
env:
PROPERTIES_PATH: './gradle.properties'
JAVA_HOME: ''

- name: Verify release version
if: steps.publish_vars.outputs.release != 'true'
run: exit 1

- name: Publish
run: ./gradlew publish -PrepoKey=${{ steps.publish_vars.outputs.repo }} -PrepoUser=ci -PrepoPassword=${{ secrets.ARTIFACTORY_PASSWORD }}

- name: Publish
working-directory: ./build/types
Expand Down

0 comments on commit 294498f

Please sign in to comment.