Skip to content

Merge branch 'main' into 33495-bug_new_xml #24

Merge branch 'main' into 33495-bug_new_xml

Merge branch 'main' into 33495-bug_new_xml #24

Workflow file for this run

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