-
Notifications
You must be signed in to change notification settings - Fork 6
28 lines (27 loc) · 909 Bytes
/
build.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
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- uses: gradle/actions/wrapper-validation@v3
- uses: gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew build
- name: Publish
run: ./gradlew publish publishAllPublicationsToHangar
env:
ORG_GRADLE_PROJECT_MGDevUsername: ${{ secrets.MAVEN_USERNAME }}
ORG_GRADLE_PROJECT_MGDevPassword: ${{ secrets.MAVEN_PASSWORD }}
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
- uses: actions/upload-artifact@v4
with:
name: Package
path: easyarmorstands-plugin/build/EasyArmorStands-*.jar