Merge pull request #13 from tiobe/32999-analyze_behaviour #15
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}} | |
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}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
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/[email protected] | |
with: | |
name: ${{steps.setname.outputs.artifact}} | |
path: build/distributions/${{steps.setname.outputs.artifact}}.zip |