Skip to content

Commit

Permalink
update GitHub actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Oct 6, 2024
1 parent f447272 commit 9c92598
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
name: build

on: [push, pull_request]
on:
push:
branches: ["*"]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

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:
distribution: 'temurin'
java-version: '21'
- name: grant execute permission for gradlew
run: chmod +x gradlew
- name: build with gradle
cache: 'gradle'
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: capture build artifacts
uses: actions/upload-artifact@v3
- name: Upload build artifacts
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: artifacts
path: build/libs/
name: ${{ github.event.repository.name }}-${{ github.sha }}
path: |
**/build/libs/*.jar

0 comments on commit 9c92598

Please sign in to comment.