-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (39 loc) · 1.16 KB
/
deploy-tag.yml
File metadata and controls
47 lines (39 loc) · 1.16 KB
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
name: deploy-tag
on:
push:
tags:
- '*'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: ${{ vars.JAVA_VENDOR }}
java-version: ${{ vars.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: wrapper
- name: Gradle build
run: ./gradlew build testClasses -x check
- name: Gradle check
run: ./gradlew check
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: build-output
path: |
lib/build/libs
lib/build/reports
providers/*/build/libs
providers/*/build/reports
- name: Gradle publish to Reposilite
run: >
./gradlew publishLocalPublicationToReposiliteRepository
-PreposiliteSnapshots=${{ secrets.REPOSILITE_SNAPSHOTS }}
-PreposiliteUsername=${{ secrets.REPOSILITE_USERNAME }}
-PreposilitePassword=${{ secrets.REPOSILITE_PASSWORD }}