Skip to content

Commit 885cdc1

Browse files
committed
Add Workflows
1 parent 5210bb9 commit 885cdc1

19 files changed

+67
-411
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
2-
# Renaming ? Change the README badge.
31
name: Build
42
on:
53
push:
@@ -11,9 +9,12 @@ jobs:
119
name: Base Checks
1210
runs-on: ubuntu-latest
1311
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-java@v1
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-java@v4
1614
with:
1715
java-version: 17
18-
- name: Perform base checks
19-
run: ./gradlew build publishToDirectory
16+
distribution: temurin
17+
cache: gradle
18+
- uses: gradle/actions/wrapper-validation@v4
19+
- name: Check local deployment
20+
run: ./gradlew build deployLocal

.github/workflows/deploy.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,24 @@ on:
33
release:
44
types: [published]
55
jobs:
6-
BINTRAY_UPLOAD:
7-
name: Bintray Upload
6+
DEPLOY:
7+
name: GitHub and Maven Central publication
88
runs-on: ubuntu-latest
99
env:
10-
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
11-
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
12-
BINTRAY_REPO: ${{ secrets.BINTRAY_REPO }}
10+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
11+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
12+
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
13+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
14+
GHUB_USER: ${{ secrets.GHUB_USER }}
15+
GHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GHUB_PERSONAL_ACCESS_TOKEN }}
1316
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-java@v1
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-java@v4
1619
with:
17-
java-version: 1.8
18-
- name: Publish to Bintray
19-
run: ./gradlew publishToBintray
20+
java-version: 17
21+
distribution: temurin
22+
cache: gradle
23+
- name: Publish to Maven Central
24+
run: ./gradlew deployNexus
25+
- name: Publish to GitHub Packages
26+
run: ./gradlew deployGithub

.github/workflows/snapshot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Snapshot
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
SNAPSHOT:
8+
name: Publish Snapshot
9+
runs-on: ubuntu-latest
10+
env:
11+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
12+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
13+
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
14+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-java@v4
18+
with:
19+
java-version: 17
20+
distribution: temurin
21+
cache: gradle
22+
- name: Publish Nexus Snapshot
23+
run: ./gradlew deployNexusSnapshot

.idea/codeStyles/Project.xml

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

.idea/codeStyles/codeStyleConfig.xml

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

.idea/compiler.xml

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

.idea/gradle.xml

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

.idea/jarRepositories.xml

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

.idea/kotlinScripting.xml

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

.idea/markdown-navigator-enh.xml

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

0 commit comments

Comments
 (0)