-
Notifications
You must be signed in to change notification settings - Fork 41
31 lines (29 loc) · 906 Bytes
/
package.yml
File metadata and controls
31 lines (29 loc) · 906 Bytes
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
name: Package
on:
release:
types: [created]
jobs:
publishJar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-dagger-cache-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-dagger-cache-
- name: Publish packages of common subprojects
run: ./gradlew :dagger-common:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish minimal and shadow packages of core
run: ./gradlew :dagger-core:minimalAndShadowPublish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}