#8 Fix version qualifier script for full releases #6
Workflow file for this run
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
# | |
# Copyright (c) 2018-2023 TNO and Contributors to the GitHub community | |
# | |
# This program and the accompanying materials are made available | |
# under the terms of the MIT License which is available at | |
# https://opensource.org/licenses/MIT | |
# | |
# SPDX-License-Identifier: MIT | |
# | |
# This workflow will build PPS with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | |
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Build and Test PPS | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 for x64 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
architecture: x64 | |
cache: maven | |
- name: Build with Maven | |
run: mvn verify --batch-mode --update-snapshots --fail-at-end --file pom.xml -Dpps.version.enduser=$GITHUB_REF_NAME -Dpps.version.qualifier=$(./versionQualifier.sh $GITHUB_REF_NAME) | |
- name: Attach Test Report | |
if: success() || failure() | |
uses: scacap/action-surefire-report@v1 | |
- name: Release PPS | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
products/nl.esi.pps.product/target/products/pps-*.zip | |
releng/nl.esi.pps.website/target/pps-*.zip |