Skip to content

[maven-release-plugin] prepare release frontend-plugins-1.15.1 #265

[maven-release-plugin] prepare release frontend-plugins-1.15.1

[maven-release-plugin] prepare release frontend-plugins-1.15.1 #265

Workflow file for this run

name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: "Run build"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Use cache
uses: actions/cache@v4
with:
path: ~/.m2
key: "${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}"
restore-keys: |
${{ runner.os }}-maven3-
- name: Configure Java
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: temurin
- name: "Run Maven"
shell: bash
run: mvn clean install --batch-mode -PintegrationTests
- name: "Deploy"
if: github.repository_owner == 'eirslett' && github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest'
shell: bash
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_TOKEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }}
OSSRH_TOKEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
run: |
export GPG_TTY=$(tty)
echo -e "$GPG_KEY" | gpg --import --passphrase $GPG_PASSPHRASE --batch --yes
mvn --settings settings-github.xml -B deploy -Prelease -DskipTests