Skip to content

Update project version to 1.0.0, rename ci.yml to release.yml, and re… #1

Update project version to 1.0.0, rename ci.yml to release.yml, and re…

Update project version to 1.0.0, rename ci.yml to release.yml, and re… #1

Workflow file for this run

name: CI Build & Test
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 }}