Skip to content

Merge pull request #4 from umjammer/0.0.12 #20

Merge pull request #4 from umjammer/0.0.12

Merge pull request #4 from umjammer/0.0.12 #20

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check w/o SNAPSHOT when "bump version"
if: ${{ contains(github.event.head_commit.message, 'bump version') }}
run: grep "<version>" pom.xml | head -1 | grep -v SNAPSHOT
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
env:
TEST_WEBDAV_ACCOUNT : ${{ secrets.TEST_WEBDAV_ACCOUNT }}
TEST_WEBDAV_PASSWORD : ${{ secrets.TEST_WEBDAV_PASSWORD }}
TEST_WEBDAV_HOST : ${{ secrets.TEST_WEBDAV_HOST }}
TEST_WEBDAV_PORT : ${{ secrets.TEST_WEBDAV_PORT }}
TEST_WEBDAV_PATH : ${{ secrets.TEST_WEBDAV_PATH }}
run: mvn -B package --file pom.xml