setup forgejo CI
This commit is contained in:
parent
219b6cb131
commit
96cc4eff13
1 changed files with 30 additions and 0 deletions
30
.forgejo/workflows/build.yaml
Normal file
30
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: eclipse-temurin:21-jdk
|
||||
|
||||
steps:
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: make gradle wrapper executable
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
- name: build
|
||||
run: ./gradlew build
|
||||
|
||||
- name: capture build artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Artifacts
|
||||
with:
|
||||
name: app-jar
|
||||
path: |
|
||||
build/libs/*.jar
|
||||
!build/libs/*-sources.jar
|
||||
!build/libs/*-javadoc.jar
|
Loading…
Add table
Reference in a new issue