-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (33 loc) · 1.19 KB
/
build-maven.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
name: Maven Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v1
with:
java-version: 21
server-id: github
settings-path: ${{ github.workspace }}
- name: Download Server dependencies
run: |
chmod +x "${{ github.workspace }}/scripts/download-spigot.sh"
${{ github.workspace }}/scripts/download-spigot.sh "${{ github.workspace }}"
- name: Download Mapping dependencies
run: |
chmod +x "${{ github.workspace }}/scripts/download-mapping.sh"
${{ github.workspace }}/scripts/download-mapping.sh "${{ github.workspace }}"
- name: Install Mapping dependencies
run: |
chmod +x "${{ github.workspace }}/scripts/install-mapping.sh"
${{ github.workspace }}/scripts/install-mapping.sh "${{ github.workspace }}"
- name: Building maven project
run: mvn -B package
- name: Publish to GitHub Packages
run: mvn deploy -s ${{ github.workspace }}/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}