fixed release workflow #2
Workflow file for this run
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: 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 }} |