Skip to content

More github action upgrades #28

More github action upgrades

More github action upgrades #28

Workflow file for this run

name: Build
on:
push:
branches-ignore:
- development
- test
- master
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK 15
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '15'
- name: Cache maven artifacts
uses: actions/cache@v4
env:
cache-name: cache-maven-artifacts
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.m2
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
- name: Extract branch name
shell: bash
run: echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
- name: Build with Maven
run: ./deploy/build.sh unused ${{ env.BRANCH }}
env:
MDM_ENDPOINT: ${{ secrets.MDM_ENDPOINT }}
MDM_TASK_PASSWORD: ${{ secrets.MDM_TASK_PASSWORD }}
MDM_TASK_USER: ${{ secrets.MDM_TASK_USER }}
- name: Report build status via Slack
uses: act10ns/slack@v2
if: always()
with:
status: ${{ job.status }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}