Skip to content

Commit

Permalink
Update dev_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
veronoicc authored Mar 26, 2024
1 parent 1839991 commit 57afadc
Showing 1 changed file with 16 additions and 35 deletions.
51 changes: 16 additions & 35 deletions .github/workflows/dev_build.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,23 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

concurrency:
group: "build-1.19"
cancel-in-progress: true

on:
push:
branches: [ master ]
paths-ignore:
- '*.md'

name: Publish Development Build
on: push

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Remove *-dev.jar
run: rm ./build/libs/*-dev.jar || true
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest-1.19"
prerelease: false
title: "1.19 Build"
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 17
distribution: adopt
- name: Build
run: ./gradlew build
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
automatic_release_tag: latest
prerelease: true
title: Dev Build
files: |
./build/libs/*.jar

0 comments on commit 57afadc

Please sign in to comment.