Skip to content

Commit ee8e863

Browse files
committed
bump version to 1.5.0
1 parent a21cc10 commit ee8e863

File tree

3 files changed

+50
-6
lines changed

3 files changed

+50
-6
lines changed

.github/workflows/tag-publish.yml

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v5
3535
- name: Setup JDK
3636
uses: actions/setup-java@v3
3737
with:
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Checkout
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@v5
5252
- name: Setup JDK
5353
uses: actions/setup-java@v3
5454
with:
@@ -63,7 +63,7 @@ jobs:
6363
id: artifact
6464
uses: actions/upload-artifact@v4
6565
with:
66-
name: vschunkloader-release-assets
66+
name: release-assets
6767
path: mod-output/*.jar
6868
overwrite: true
6969
if-no-files-found: error
@@ -79,7 +79,7 @@ jobs:
7979
- name: Download artifact
8080
uses: actions/download-artifact@v4
8181
with:
82-
name: vschunkloader-release-assets
82+
name: release-assets
8383
path: ./release-assets
8484
- name: Upload Release Assets
8585
uses: zyxkad/upload-release-asset-dir@v2
@@ -88,3 +88,47 @@ jobs:
8888
with:
8989
upload_url: ${{ needs.create_release.outputs.upload_url }}
9090
asset_dir: ./release-assets
91+
92+
publish_maven:
93+
name: Publish Maven
94+
runs-on: ubuntu-latest
95+
needs:
96+
- test
97+
steps:
98+
- name: Checkout Source
99+
uses: actions/checkout@v5
100+
with:
101+
path: ./source
102+
- name: Setup Gradle
103+
uses: gradle/actions/setup-gradle@v4
104+
- name: Checkout Maven
105+
uses: actions/checkout@v5
106+
with:
107+
repository: LiterMC/maven
108+
ref: maven
109+
ssh-key: ${{ secrets.MAVEN_DEPLOY_PRIVATE_KEY }}
110+
path: ./maven
111+
- name: Publish To Maven
112+
env:
113+
local_maven_url: file://${{ github.workspace }}/maven
114+
run: |
115+
git config --global user.name "github-actions[bot]"
116+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
117+
118+
WORKDIR=$(pwd)
119+
for i in {1..3}; do
120+
cd "${WORKDIR}/source"
121+
./gradlew publishMavenJavaPublicationToMavenRepository
122+
cd "${WORKDIR}/maven"
123+
git add .
124+
git commit -m 'publish: ${{ github.repository }} ${{ github.ref_name }}' || exit $?
125+
git push origin HEAD:maven && exit 0
126+
127+
echo "::error::"
128+
echo "::error::Push failed, tried $i"
129+
echo "::error::"
130+
131+
git fetch origin maven
132+
git reset --hard origin/maven
133+
done
134+
exit 1

common/src/main/java/com/github/litermc/vschunkloader/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
public final class Constants {
77
public static final String MOD_ID = "vschunkloader";
88
public static final String MOD_NAME = "VSChunkLoader";
9-
public static final String MOD_VERSION = "1.4.0";
9+
public static final String MOD_VERSION = "1.5.0";
1010
public static final Logger LOG = LoggerFactory.getLogger(MOD_NAME);
1111

1212
private Constants() {}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.jvmargs=-Xmx3G
66
org.gradle.daemon=true
77

88
# Project
9-
version=1.4.0
9+
version=1.5.0
1010
group=com.github.litermc.vschunkloader
1111
java_version=17
1212

0 commit comments

Comments
 (0)