Skip to content

Update autobuild-release.yml #20

Update autobuild-release.yml

Update autobuild-release.yml #20

name: Gradle Build Autogenerated Release
on:
release:
types:
- created
push:
branches: [ "master" ]
pull_request:
branches: [ "master", "dev*" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '18.x'
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
java-version: '19'
distribution: 'temurin'
check-latest: true
cache: 'gradle'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
#- name: Regenerate Gradle wrapper
# run: gradle wrapper
- name: Execute Gradle build
run: ./gradlew clean build
- name: Generate latest release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: true
title: "Latest autogenerated build"
files: |
**/build/**/*hict*.jar