Bump version to 1.0.2 (#13) #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to artifactory on release branch | |
on: | |
push: | |
branches: [ "release" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
env: | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
steps: | |
- name: "Checkout sources" | |
uses: actions/checkout@v4 | |
- name: "Setup Java" | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
# Populates ARTIFACTORY_USERNAME and ARTIFACTORY_API_KEY with | |
# temporary username/password for publishing to packages.atlassian.com | |
- name: Get publish token | |
id: publish-token | |
uses: atlassian-labs/[email protected] | |
with: | |
output-modes: environment | |
# Publishes to Artifactory only on push to the "release" branch. | |
- name: "Publish" | |
run: ./gradlew assemble && ./gradlew publish --stacktrace |