forked from SourceWriters/SmoothTimber
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.49 KB
/
Copy pathbuild-dev.yml
File metadata and controls
48 lines (37 loc) · 1.49 KB
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
43
44
45
46
47
48
name: Build Development
on:
push:
branches: [legacy]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Download GriefPrevention
run: curl -o GriefPrevention.jar https://api.serversmp.xyz/upload/69f601b7986e1f4bd6f7cf46.jar
- name: Download LogBlock
run: curl -o LogBlock.jar https://api.serversmp.xyz/upload/69f601b7a022054e454d11a4.jar
- name: Install GriefPrevention to Maven
run: mvn install:install-file -Dfile=GriefPrevention.jar -DgroupId=com.github.TechFortress -DartifactId=GriefPrevention -Dversion=16.16.0 -Dpackaging=jar -DgeneratePom=true
- name: Install LogBlock to Maven
run: mvn install:install-file -Dfile=LogBlock.jar -DgroupId=de.diddiz -DartifactId=logblock -Dversion=1.16.1.2-SNAPSHOT -Dpackaging=jar -DgeneratePom=true
- name: Build
run: mvn package --file pom.xml
- name: Extract repository name
run: echo "NAME=$(basename ${{ github.repository }})" >> $GITHUB_ENV
- name: Upload Build
uses: marvinpinto/action-automatic-releases@master
with:
title: "${{ env.NAME }}"
automatic_release_tag: "latest"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: "target/*.jar"
prerelease: false