-
Notifications
You must be signed in to change notification settings - Fork 15
34 lines (32 loc) · 983 Bytes
/
gradle.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
---
name: Gradle
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
build:
uses: ome/action-workflows/.github/workflows/[email protected]
with:
install-ice: true
publish_snapshots:
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'ome' }}
needs: build
uses: ome/action-workflows/.github/workflows/[email protected]
with:
install-ice: true
ARTIFACTORY_URL: "snapshots"
secrets:
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
publish:
needs: build
if: startsWith(github.ref, 'refs/tags') && github.repository_owner == 'ome'
uses: ome/action-workflows/.github/workflows/[email protected]
with:
install-ice: true
ARTIFACTORY_URL: "releases"
secrets:
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}