Skip to content

Commit

Permalink
ci: test build
Browse files Browse the repository at this point in the history
  • Loading branch information
itstor committed Jun 8, 2024
1 parent e85ebf8 commit 8e0e518
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build and Release

on:
push:
tags:
- 'v*.*.*'
branches:
- main

jobs:
build_and_release:
Expand All @@ -13,31 +13,27 @@ jobs:
- name: 📥 Checkout sources
uses: actions/checkout@v4

- name: 🔧 Setup Java
- name: 🔧 Setup Java with cache
uses: actions/setup-java@v4
with:
distribution: 'zulu'
distribution: "zulu"
java-version: 17

- name: 🔧 Setup Gradle
uses: gradle/gradle-build-action@v3
with:
cache-enabled: true
cache: "gradle"

- name: ✅ Grant gradlew permissions
run: chmod +x ./gradlew

- name: 🛠️ Build with Gradle
run: ./gradlew build

- name: 📦 Create Release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
target_commitish: ${{ github.sha }}
generate_release_notes: true
draft: false
files: build/libs/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: 📦 Create Release
# uses: softprops/action-gh-release@v2
# with:
# name: Release ${{ github.ref_name }}
# tag_name: ${{ github.ref_name }}
# target_commitish: ${{ github.sha }}
# generate_release_notes: true
# draft: false
# files: build/libs/*.jar
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8e0e518

Please sign in to comment.