Skip to content

Commit

Permalink
always build on push, update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
toinux committed Mar 12, 2024
1 parent bd250bb commit 7290653
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/gradle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@

name: Gradle Package

on:
push:
tags:
- "v*.*.*"
on: push

jobs:
build:
Expand All @@ -21,12 +18,13 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- uses: pnpm/action-setup@v3
Expand All @@ -41,13 +39,17 @@ jobs:
- name: Install pnpm dependencies
working-directory: ./front
run: pnpm install
- name: Build front
working-directory: ./front
run: pnpm build
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: bootJar
run: ./gradlew build

- name: GH Release
uses: softprops/[email protected]
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/libs/*.jar
Expand Down

0 comments on commit 7290653

Please sign in to comment.