forked from Upstream/Velocitab
Add modritnh CI via workflow
This commit is contained in:
parent
b98de1ea3a
commit
9996144ee2
35
.github/workflows/java_ci.yml
vendored
35
.github/workflows/java_ci.yml
vendored
@ -21,4 +21,37 @@ jobs:
|
||||
- name: Build with Gradle
|
||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||
with:
|
||||
arguments: build
|
||||
arguments: build
|
||||
- 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/mc-publish@v3.2
|
||||
with:
|
||||
modrinth-id: Q10irTG0
|
||||
modrinth-featured: false
|
||||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
|
||||
files-primary: build/libs/Velocitab-*-all.jar
|
||||
name: Velocitab v${{ env.version_name }}
|
||||
version: ${{ env.version_name }}
|
||||
version-type: alpha
|
||||
changelog: ${{ github.event.head_commit.message }}
|
||||
loaders: |
|
||||
velocity
|
||||
dependencies: |
|
||||
protocolize | depends | 2.2.5
|
||||
luckperms | suggests | *
|
||||
game-versions: |
|
||||
1.19
|
||||
1.19.2
|
||||
1.19.3
|
||||
java: 16
|
||||
- name: Upload GitHub Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Velocitab Plugin
|
||||
path: build/libs/Velocitab-*-all.jar
|
Loading…
Reference in New Issue
Block a user