Build triggered by shemuwel #10
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 | |
run-name: Build triggered by ${{ github.actor }} | |
on: | |
push: | |
pull_request_target: | |
types: [opened, edited, ready_for_review] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: mvn package | |
- name: Read Pom Version | |
id: get-version | |
run: | | |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | |
echo "ARTIFACT_VERSION=$VERSION" >> "$GITHUB_OUTPUT" | |
- name: Upload JAR artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: TestComplete-${{ steps.get-version.outputs.version }}.jar | |
path: target/TestComplete.jar | |
- name: Upload HPI artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
nme: TestComplete-${{ steps.get-version.outputs.version }}.hpi | |
path: target/TestComplete.hpi |