Skip to content

Change workflow name to Build & Release, and update install.sh to dow… #2

Change workflow name to Build & Release, and update install.sh to dow…

Change workflow name to Build & Release, and update install.sh to dow… #2

Workflow file for this run

name: Build & Release
on:
push:
branches: [ main ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Verify build and run tests
run: ./gradlew check test
- name: Build distributions
run: ./gradlew :library-insight-cli:distZip :library-insight-cli:distTar
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: |
library-insight-cli/build/distributions/library-insight-cli-*.zip
library-insight-cli/build/distributions/library-insight-cli-*.tar
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}