Create build.yml
This commit is contained in:
parent
c5b12903cd
commit
5956849a49
31
.gitea/workflows/build.yml
Normal file
31
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,31 @@
|
||||
name: SharePulse Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-jar:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'adopt'
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
- name: Build .jar with Maven
|
||||
run: ./gradlew clean bootJar
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: jar-artifact
|
||||
path: build/libs/*.jar
|
Loading…
x
Reference in New Issue
Block a user