Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #20
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
name: Build | |
on: | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
releaseVersion: | |
type: string | |
required: false | |
default: '' | |
push: | |
branches: | |
- 'develop' | |
- 'release/*' | |
pull_request: | |
branches: | |
- 'develop' | |
- 'release/*' | |
jobs: | |
build: | |
name: Build Job | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Prepare version | |
if: ${{ inputs.releaseVersion != '' }} | |
run: 'mvn versions:set -DnewVersion=${{ inputs.releaseVersion }}' | |
- name: Build & Test with Maven | |
run: 'mvn clean install' | |
- name: Save Package / Artifact | |
if: ${{ inputs.releaseVersion != '' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 'aem-msm-tools-${{ inputs.releaseVersion }}' | |
path: all/target/*.zip |