-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.19 KB
/
dev_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
29
30
31
32
33
34
35
36
37
name: Publish Development Build
on:
push:
branches:
- "1.21.4"
env:
MINECRAFT_VERSION: "1.21.4"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 21
distribution: adopt
- name: Build
run: ./gradlew build
- name: Extract Mod Version
run: |
VERSION=$(grep "mod_version" gradle.properties | cut -d'=' -f2)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Get Fabric Jar Filename
run: echo "NAME=jefff-mod-${{ env.VERSION }}-${{ env.MINECRAFT_VERSION }}" >> $GITHUB_ENV
- name: Rename Output File
run: mv ./build/libs/*.jar ./build/libs/${{ env.NAME }}.jar
- name: Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
makeLatest: true
commit: ${{ env.MINECRAFT_VERSION }}
tag: ${{ env.VERSION }}
artifacts: |
./build/libs/*.jar