Skip to content

Release v1.2.0

Release v1.2.0 #31

Workflow file for this run

name: Publish to maven central
on:
release:
types: [ published ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Java and Maven
uses: actions/setup-java@v1
with:
java-version: 8
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Extract VIMEO_JAVA_VERSION
run: |
export BUILD_TAG_PARTS=(${GITHUB_REF//// })
echo "VIMEO_JAVA_VERSION=${BUILD_TAG_PARTS[-1]}" > ${GITHUB_ENV}
- name: set version
run: mvn versions:set versions:commit -DnewVersion="${VIMEO_JAVA_VERSION}"
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }}
gpg_passphrase: ${{ secrets.GPG_SIGNING_PASS }}
nexus_username: ${{ secrets.OSSRH_USERNAME }}
nexus_password: ${{ secrets.OSSRH_TOKEN }}