Skip to content

Commit d1fffc2

Browse files
author
david
committed
improve workflows
1 parent 362389e commit d1fffc2

File tree

4 files changed

+52
-44
lines changed

4 files changed

+52
-44
lines changed

.github/workflows/build-pr.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7+
8+
name: Java CI with Gradle
9+
on: [ pull_request, push ]
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up JDK 21
16+
uses: actions/setup-java@v4
17+
with:
18+
java-version: '21'
19+
distribution: 'temurin'
20+
- name: Build with Gradle
21+
uses: gradle/actions/setup-gradle@v3
22+
with:
23+
arguments: shadowJar
24+
- name: Upload a Build Artifact
25+
uses: actions/upload-artifact@v4
26+
with:
27+
path: build/libs/*
28+
if-no-files-found: error

.github/workflows/hangar-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Hangar Publish
2+
3+
on:
4+
release:
5+
types:
6+
- prereleased
7+
- released
8+
9+
jobs:
10+
build:
11+
env:
12+
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '21'
20+
distribution: 'temurin'
21+
- name: Publish with Gradle to Hangar
22+
uses: gradle/actions/setup-gradle@v3
23+
with:
24+
arguments: publishAllPublicationsToHangar

.github/workflows/publish.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)