All checks were successful
Generate Release Notes / generate-changelog (release) Successful in 7s
43 lines
981 B
YAML
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 }} |