mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Update java_ci to use mc-push
This commit is contained in:
1 parent
d652f1720b
commit
bb5e0f82c1
1 file changed
+30
-5
@@ -23,11 +23,36 @@ jobs:
|
||||
- name: Build with Gradle
|
||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||
with:
|
||||
arguments: build test modrinth
|
||||
env:
|
||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||
MODRINTH_CHANGELOG: ${{ join(github.event.commits.*.message, '<br>') }}
|
||||
- name: Upload Artifact
|
||||
arguments: build test
|
||||
- name: Query Version
|
||||
run: |
|
||||
echo "::set-output name=VERSION_NAME::$(${{github.workspace}}/gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}'")
|
||||
id: fetch-version
|
||||
- name: Get Version
|
||||
run: |
|
||||
echo "version_name=${{steps.fetch-version.outputs.VERSION_NAME}}" >> $GITHUB_ENV
|
||||
- name: Upload to Modrinth
|
||||
uses: Kir-Antipov/[email protected]
|
||||
with:
|
||||
modrinth-id: J6U9o3JG
|
||||
modrinth-featured: false
|
||||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
|
||||
files-primary: target/HuskHomes-Plugin-*.jar
|
||||
name: HuskHomes
|
||||
version: ${{ env.version_name }}
|
||||
version-type: alpha
|
||||
changelog: ${{ github.event.head_commit.message }}
|
||||
loaders: |
|
||||
spigot
|
||||
paper
|
||||
purpur
|
||||
game-versions: |
|
||||
1.16.5
|
||||
1.17.1
|
||||
1.18.2
|
||||
1.19.2
|
||||
java: 16
|
||||
- name: Upload GitHub Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: HuskHomes Plugin
|
||||
|
||||
Reference in new issue
Block a user