#33495: Added property so the XML can be parsed #21
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
name: Build Artifacts | |
on: | |
workflow_call: | |
inputs: | |
version: | |
description: Name of the uploaded artifact | |
type: string | |
outputs: | |
artifact: | |
value: ${{jobs.build.outputs.artifact}} | |
version: | |
value: ${{jobs.build.outputs.version}} | |
push: | |
branches: "*" | |
tags-ignore: "*" | |
paths-ignore: | |
- ".github/**" | |
- ".githooks/**" | |
- "LICENSE" | |
- "README.md" | |
jobs: | |
gitversion: | |
uses: ./.github/workflows/gitversion.yml | |
build: | |
runs-on: ubuntu-latest | |
needs: gitversion | |
outputs: | |
artifact: ${{steps.setname.outputs.artifact}} | |
version: ${{needs.gitversion.outputs.fullSemVer}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: gradle | |
- name: Build with Gradle | |
run: ./gradlew build --no-daemon -Pversion='${{needs.gitversion.outputs.fullSemVer}}' | |
- name: Set artifact name | |
id: setname | |
run: echo "artifact=tics-intellij-plugin-${{needs.gitversion.outputs.fullSemVer}}" >> $GITHUB_OUTPUT | |
- name: Upload build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{steps.setname.outputs.artifact}} | |
path: build/distributions/${{steps.setname.outputs.artifact}}.zip |