-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (37 loc) · 1.04 KB
/
build_deploy.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
name: Build and Deploy
on:
push:
branches: [main]
paths-ignore:
- .gitignore
- LICENSE
- README.md
jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
server-id: glowstone-upstream
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.m2/repository
templates/
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Download template JAR
run: ./build-external.sh
- name: Maven Build and Deploy
run: mvn -T 1C -B -am source:jar javadoc:jar deploy dependency:go-offline
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}