-
-
Notifications
You must be signed in to change notification settings - Fork 85
37 lines (35 loc) · 1.21 KB
/
publish_snapshot.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
name: Publish Snapshot
on: [push]
jobs:
build:
strategy:
matrix:
java: [21]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: Check Licenses and Generate QMJs
uses: gradle/gradle-build-action@v2
with:
arguments: checkLicenses generateQmj --parallel --stacktrace
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') && !startsWith(github.ref, 'refs/tags/v') }}
- name: Publish to Snapshot maven
uses: gradle/gradle-build-action@v2
with:
arguments: build publish --stacktrace --parallel
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') && !startsWith(github.ref, 'refs/tags/v') }}
env:
SNAPSHOTS_URL: ${{ secrets.SNAPSHOTS_URL }}
SNAPSHOTS_USERNAME: ${{ secrets.SNAPSHOTS_USERNAME }}
SNAPSHOTS_PASSWORD: ${{ secrets.SNAPSHOTS_PASSWORD }}
- uses: actions/upload-artifact@v3
with:
name: Artifacts
path: ./*/build/libs/