Merge branch 'dev' #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache local Maven repo | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 8 | |
server-id: github | |
- name: View settings.xml | |
run: | | |
cat /home/runner/.m2/settings.xml | |
echo $GITHUB_ACTOR | |
- name: Configure Git | |
run: | | |
git config user.email "actions@github.com" | |
git config user.name "Github Actions" | |
- name: Maven release | |
run: mvn -DignoreSnapshots=true -B release:prepare release:perform | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |