Skip to content

Merge pull request #10 from cashapp/xethorn/2023-sept-switch-to-semver #1

Merge pull request #10 from cashapp/xethorn/2023-sept-switch-to-semver

Merge pull request #10 from cashapp/xethorn/2023-sept-switch-to-semver #1

Workflow file for this run

name: Publish
on:
push:
tags: [ "*" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: gradle/[email protected]
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- run: ./gradlew test
publish:
name: Publish
runs-on: ubuntu-latest
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
steps:
- name: Checkout
uses: actions/[email protected]
- uses: gradle/[email protected]
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- name: Assign a version
run: |
# set a version based on the tag name.
echo "VERSION_NAME=$(git describe --tags --abbrev=0)" >> gradle.properties
cat gradle.properties
- name: Publish the artifacts
run: |
gradle clean publish --stacktrace