-
Notifications
You must be signed in to change notification settings - Fork 94
48 lines (43 loc) · 1.18 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
---
name: Publish Snapshot
on:
workflow_dispatch:
push:
branches:
- main
- '[0-9].[0-9]'
jobs:
snapshot:
name: Deploy Snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cache
uses: actions/cache@v2
with:
path: |
~/.mv2/repository
key: om-${{hashFiles('**/pom.xml')}}
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- run: mvn dependency:go-offline
- run: mvn clean process-test-classes verify
- name: codecov
run: |
curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov
- name: deploy
working-directory: redis-om-spring
run: |
mvn --no-transfer-progress \
-DskipTests\
-Dgpg.passphrase='${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}' \
deploy
env:
MAVEN_USERNAME: ${{secrets.OSSRH_USERNAME}}
MAVEN_PASSWORD: ${{secrets.OSSRH_TOKEN}}