Hotfix for universal file selector #53
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: Gradle Build Autogenerated Release | |
on: | |
release: | |
types: | |
- created | |
push: | |
branches: [ "master", "dev*" ] | |
pull_request: | |
branches: [ "master", "dev*" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3.8.1 | |
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-${{ steps.extract_branch.outputs.branch }} | |
prerelease: true | |
title: "Latest autogenerated build (branch ${{ steps.extract_branch.outputs.branch }})" | |
files: | | |
**/build/**/*hict*.jar |