Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

build(deps): bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.… #178

build(deps): bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.…

build(deps): bump org.apache.maven.plugins:maven-gpg-plugin from 3.2.… #178

Workflow file for this run

---
name: Stage
on:
workflow_dispatch:
push:
branches:
- main
jobs:
stage:
runs-on: ubuntu-latest
environment: staging
name: Deploy and release snapshot
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java 11
uses: actions/setup-java@v4.3.0
with:
distribution: adopt
java-version: 11
cache: maven
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_TOKEN
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Get current project version
id: currentVersion
uses: QwerMike/xpath-action@v1
with:
filename: pom.xml
expression: '/*[local-name()="project"]/*[local-name()="version"]/text()'
- name: Deploy snapshot to OSSRH
if: endsWith(steps.currentVersion.outputs.result, '-SNAPSHOT')
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: mvn deploy -Pcov,prep,sign,deploy -B -ff
- name: Push to CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: target/site/jacoco/jacoco.xml
fail_ci_if_error: true