Skip to content

Create release workflow #62

Create release workflow

Create release workflow #62

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build Neo4j - Spatial Components
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt
cache: maven
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run Maven build
run: ./mvnw --no-transfer-progress clean compile test
- name: Prepare for release
run: ./mvnw mvn versions:set -DremoveSnapshot=true
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: "**/target/surefire-reports/*.xml"
report_individual_runs: "true"