Skip to content

1.0.86

1.0.86 #99

Workflow file for this run

# Copyright 2021 Twilio, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Publish to Maven Central
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Update to release version
run: mvn -B build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.incrementalVersion} -DgenerateBackupPoms=false
- name: Decrypt Tar Ball
env:
TARBALL_PASSWORD: ${{ secrets.TARBALL_PASSWORD }}
run: ./.github/scripts/decrypt_secret.sh
- name: Deploy to Maven Central
run: mvn -B -Prelease deploy --settings settings.xml
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_PASS: ${{ secrets.PGP_PASS }}
- name: Update to snapshot version
run: mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT -DgenerateBackupPoms=false
- name: Commit Pom Changes After Release
uses: EndBug/add-and-commit@v6
with:
add: '*pom.xml'
# this action tries to commit to
# Error: error: pathspec '.0.14' did not match any file(s) known to git
# I think by setting the branch it will work
branch: main