Skip to content

Commit 52b4e75

Browse files
committed
Version Increment
1 parent 0d9f392 commit 52b4e75

2 files changed

Lines changed: 22 additions & 14 deletions

File tree

.github/workflows/publish.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,33 @@ jobs:
5252
needs: build
5353
runs-on: ubuntu-latest
5454
steps:
55-
- name: Downloading artifact
55+
- name: Checkout code
5656
uses: actions/checkout@v4
57+
5758
- uses: thecodemonkey/action-get-gradle-version@master
5859
id: version
5960
with:
6061
file: "build.gradle.kts"
61-
- uses: actions/download-artifact@v4.2.1
62+
63+
- name: Download build artifact
64+
uses: actions/download-artifact@v4.2.1
6265
with:
6366
name: "IridiumCore"
6467
path: "./"
6568

66-
- name: Publishing to Nexus
67-
uses: sonatype-nexus-community/nexus-repo-github-action@master
68-
with:
69-
serverUrl: "https://nexus.iridiumdevelopment.net/"
70-
username: "${{ secrets.NEXUS_USERNAME }}"
71-
password: "${{ secrets.NEXUS_PASSWORD }}"
72-
format: "maven2"
73-
repository: "maven-releases"
74-
coordinates: "groupId=com.iridium artifactId=IridiumCore version=${{steps.version.outputs.version}} generate-pom=on"
75-
assets: "extension=jar"
76-
filename: "IridiumCore-*.jar"
69+
- name: Find IridiumCore jar
70+
id: find_jar
71+
run: |
72+
FILE=$(find . -type f -name "IridiumCore-*.jar" | head -n 1)
73+
echo "file=$FILE" >> "$GITHUB_OUTPUT"
74+
75+
- name: Upload to Nexus with curl
76+
run: |
77+
curl --location 'https://nexus.iridiumdevelopment.net/service/rest/v1/components?repository=maven-releases' \
78+
--header 'Authorization: Basic ${{ secrets.NEXUS_AUTH }}' \
79+
-F "maven2.groupId=com.iridium" \
80+
-F "maven2.artifactId=IridiumCore" \
81+
-F "maven2.version=${{ steps.version.outputs.version }}" \
82+
-F "maven2.generate-pom=true" \
83+
-F "maven2.asset1=@${{ steps.find_jar.outputs.file }}" \
84+
-F "maven2.asset1.extension=jar"

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "com.iridium"
8-
version = "2.0.8.8"
8+
version = "2.0.9"
99
description = "IridiumCore"
1010

1111
allprojects {

0 commit comments

Comments
 (0)