Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit b70be13

Browse files
committed
CI: add/update main build action
1 parent 80e5b01 commit b70be13

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build-main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "*-[0-9]+.*"
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Cache m2 folder
18+
uses: actions/cache@v2
19+
env:
20+
cache-name: cache-m2
21+
with:
22+
path: ~/.m2/repository
23+
key: ${{ runner.os }}-build-${{ env.cache-name }}
24+
restore-keys: |
25+
${{ runner.os }}-build-${{ env.cache-name }}-
26+
${{ runner.os }}-build-
27+
${{ runner.os }}-
28+
29+
- name: Set up JDK 8
30+
uses: actions/setup-java@v2
31+
with:
32+
java-version: '8'
33+
distribution: 'zulu'
34+
- name: Set up CI environment
35+
run: .github/setup.sh
36+
- name: Execute the build
37+
run: .github/build.sh
38+
env:
39+
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
40+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
41+
MAVEN_USER: ${{ secrets.MAVEN_USER }}
42+
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
43+
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
44+
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}

0 commit comments

Comments
 (0)