-
-
Notifications
You must be signed in to change notification settings - Fork 27
38 lines (33 loc) · 995 Bytes
/
Copy pathpublish.yml
File metadata and controls
38 lines (33 loc) · 995 Bytes
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
name: Build and Publish
on:
push:
branches:
- master
jobs:
build:
if: github.repository_owner == 'SamB440'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Setup JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6 # Handles Gradle wrapper validation and basic caching
- name: Build and Publish to Convallyria repository
run: ./gradlew build publish
env:
MAVEN_USERNAME: ${{ secrets.REPO_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.REPO_PASSWORD }}
- name: Capture build artifacts
uses: actions/upload-artifact@v7
with:
name: Artifacts
path: |
**/build/libs/
*/build/libs/