Skip to content

Bump org.apache.maven.plugins:maven-clean-plugin from 3.3.1 to 3.3.2 #71

Bump org.apache.maven.plugins:maven-clean-plugin from 3.3.1 to 3.3.2

Bump org.apache.maven.plugins:maven-clean-plugin from 3.3.1 to 3.3.2 #71

Workflow file for this run

name: Create Release
on:
workflow_dispatch:
push:
branches-ignore:
- '*'
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-[A-Z]
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
# SETUP BUILD ENVIRONMENT
- id: prepare-maven-build
name: Prepare Maven build
uses: sualeh/prepare-maven-build@v1.3.5
# BUILD FOR DISTRIBUTION
- id: build
name: Build and test for distribution
run: |
# Build
mvn \
--no-transfer-progress \
--batch-mode \
install
# CREATE GITHUB RELEASE AND ADD ASSETS
- id: create-release
name: Create GitHub release
uses: actions/create-release@latest
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
Credit Card Number ${{ github.event.release.tag_name }} release at last commit ${{ github.sha }}
draft: false
prerelease: false
# PUBLISH TO CENTRAL REPOSITORY
- id: install-secret-key
name: Install secret key
if: startsWith(github.ref, 'refs/tags/')
# Note: OSSRH_GPG_SECRET_KEY is exported using gpg --export-secret-keys -a <keyid>
# and has newlines substituted with a literal \n
run: |
# Install secret key
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- id: publish-to-central
name: Publish to Central Repository
if: startsWith(github.ref, 'refs/tags/')
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: |
# Publish to Central Repository
export GPG_TTY=$(tty)
mvn \
--no-transfer-progress \
--batch-mode \
-Ddistrib \
-Dmaven.javadoc.skip=false \
-Dskip.signing.artifacts=false \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \
clean deploy