Skip to content

Merge pull request #52 from Unknow0/fix-path-matching #78

Merge pull request #52 from Unknow0/fix-path-matching

Merge pull request #52 from Unknow0/fix-path-matching #78

Workflow file for this run

name: release
on:
push:
tags:
- 'release/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
server-id: central
server-username: MAVEN_USER
server-password: MAVEN_PASS
- name: set version
run: mvn -B versions:set -DnewVersion=${GITHUB_REF##*/}
- name: build
run: mvn -B -P deploy package
- name: install xmllint
run: |-
sudo apt update
sudo apt install libxml2-utils
- name: validate
run: bash .github/validate.sh
- name: publish
run: mvn -B -P deploy deploy
env:
MAVEN_USER: ${{secrets.MAVEN_CENTRAL_USER}}
MAVEN_PASS: ${{secrets.MAVEN_CENTRAL_PASS}}
MAVEN_GPG_KEY: ${{secrets.MAVEN_GPG_KEY}}