Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Merge pull request #217 from apereo/dependabot/maven/org.springframew… #397

Merge pull request #217 from apereo/dependabot/maven/org.springframew…

Merge pull request #217 from apereo/dependabot/maven/org.springframew… #397

Workflow file for this run

#
# Licensed to Apereo under one or more contributor license
# agreements. See the NOTICE file distributed with this work
# for additional information regarding copyright ownership.
# Apereo licenses this file to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a
# copy of the License at the following location:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
name: Build
env:
TERM: xterm-256color
SONATYPE_PWD: ${{ secrets.SONATYPE_PWD }}
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
GH_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JDK_CURRENT: 17
##########################################################################
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
##########################################################################
jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
needs: cancel-previous-runs
steps:
- uses: actions/checkout@v3
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Build
run: mvn clean install
##########################################################################
publish-snapshots:
runs-on: ubuntu-latest
needs: [build]
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Publish SNAPSHOTs
if: ${{ env.SONATYPE_USER != null && env.SONATYPE_PWD != null }}
run: mvn -T 10 deploy --settings ./.github/workflows/settings.xml