Skip to content

fixed release workflow #2

fixed release workflow

fixed release workflow #2

Workflow file for this run

name: Create Release 🎉
on:
push:
tags:
- 'v*' # Trigger on version tag pushes (e.g., v1.0, v2.0)
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: 🛎️ Checkout code
uses: actions/checkout@v4
# Step 2: Set up JDK (using Zulu)
- name: ☕ Set up Zulu JDK 17
uses: actions/setup-java@v4
with:
java-version: '17' # Specify the JDK version
distribution: 'zulu'
# Step 3: Build the project and create shadowJar
- name: 🚧 Build with Gradle
run: ./gradlew shadowJar --no-daemon
release:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v4
- name: 📦 Create Release
uses: Roang-zero1/github-create-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release artifacts
uses: Roang-zero1/github-upload-release-artifacts-action@v3
with:
args: "build/libs"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}