-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (26 loc) · 1.15 KB
/
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
name: Release New Version
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Set Version
run: |
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' gradle.properties
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' common/src/main/java/me/mrnavastar/protoweaver/core/util/ProtoConstants.java
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' loader-fabric/src/main/resources/fabric.mod.json
sed -i 's/0.debug-build/${{ github.event.release.tag_name }}/g' loader-forge/src/main/resources/META-INF/mods.toml
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' loader-plugin/src/main/resources/plugin.yml
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' proxy/src/main/resources/bungee.yml
- name: Build
run: ./gradlew build publish
env:
MAVEN_NAME: ${{ secrets.MAVEN_NAME }}
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }}