-
-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (39 loc) · 1.01 KB
/
ci.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
on:
push:
branches:
- main
pull_request:
branches:
- main
name: CI check
jobs:
build:
runs-on: ubuntu-latest
name: Build and deploy
steps:
- name: Check out code
uses: actions/[email protected]
with:
submodules: true
- name: Set SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Add known host key
run: ssh-keyscan javacard.pro >> ~/.ssh/known_hosts
- name: Cache local Maven repository
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Setup java
uses: actions/[email protected]
with:
java-version: 17
distribution: temurin
- name: Compile and verify
run: ./mvnw -U -B -T1C verify
- name: Deploy snapshot
run: ./mvnw -B deploy