Files
Chancery/.github/workflows/release-build.yml
AXOLOTsh 225163a9e7
All checks were successful
Generate Release Notes / generate-changelog (release) Successful in 7s
chore: add release workflows
2026-08-25 02:37:53 +03:00

43 lines
981 B
YAML

name: Build Release
on:
workflow_run:
workflows: ["Generate Release Notes"]
types: [completed]
env:
BUILD_FILES: "chancery/build/libs/*.jar"
JDK_VERSION: "25"
GRADLE_TASK: "build shadowJar --refresh-dependencies"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK ${{ env.JDK_VERSION }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ env.JDK_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew ${{ env.GRADLE_TASK }}
- name: Update Release
uses: softprops/action-gh-release@v2
with:
files: ${{ env.BUILD_FILES }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}