Skip to content

test

test #10

Workflow file for this run

name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
branches:
- fix-deploy-workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo ${{ secrets.GPG_KEY }} | wc -c
- run: echo ${{ secrets.GPG_PASSPHRASE }} | wc -c
- run: echo ${{ secrets.NEXUS_USERNAME }} | wc -c
- run: echo ${{ secrets.NEXUS_PASSWORD }} | wc -c
- name: Install Java and Maven
uses: actions/setup-java@v1
with:
java-version: 8
- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
- name: Publish to Maven
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.GPG_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus_username: ${{ secrets.NEXUS_USERNAME }}
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
maven_profiles: release