-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (48 loc) · 1.39 KB
/
main-updated.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: main-updated
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build-logic:
runs-on: macos-latest
steps:
- name: check out
uses: actions/checkout@v3
- name: build build-logic
uses: ./.github/actions/gradle-task
with:
task: :build-logic:compileKotlin :build-logic:jar
write-cache-key: build-logic-jar
build-all:
runs-on: macos-latest
steps:
- name: check out
uses: actions/checkout@v3
- name: main build
uses: ./.github/actions/gradle-task
with:
task: jar compileKotlin
restore-cache-key: build-logic-jar
write-cache-key: main-build-artifacts
publish-snapshot:
needs:
- build-all
if: github.repository == 'RBusarow/ModuleCheck'
runs-on: macos-latest
steps:
- name: check out
uses: actions/checkout@v3
- name: Dokka & JavadocJar
uses: ./.github/actions/gradle-task
with:
task: dokkaJavadocJar
restore-cache-key: main-build-artifacts
- name: Publish Snapshots
uses: ./.github/actions/gradle-task
with:
task: publish
write-cache-key: local-m2
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}