Merge pull request #122 from traveltime-dev/update-proto-distance-sup… #79
Workflow file for this run
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: Artifact publish | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Maven Central Repository | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
distribution: 'adopt' | |
server-id: sonatype | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Get tag | |
id: tag | |
uses: dawidd6/action-get-tag@v1 | |
with: | |
strip_v: true | |
- name: Update version in pom.xml | |
run: mvn versions:set -DnewVersion=${{steps.tag.outputs.tag}} | |
- name: Commit version | |
run: mvn versions:commit | |
- name: Publish package | |
env: | |
APP_ID: ${{ secrets.APP_ID }} | |
API_KEY: ${{ secrets.API_KEY }} | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
PROTO_USERNAME: ${{ secrets.PROTO_USERNAME }} | |
PROTO_PASSWORD: ${{ secrets.PROTO_PASSWORD }} | |
run: mvn --batch-mode deploy |