Velocitab/.github/workflows/java_ci.yml

104 lines
2.7 KiB
YAML
Raw Normal View History

2023-02-24 23:20:08 +01:00
# Builds, tests the project with Gradle
name: Java CI
on:
push:
branches: [ 'master' ]
paths-ignore:
- 'docs/**'
2023-04-21 15:23:58 +02:00
- 'workflows/**'
- 'README.md'
2023-02-24 23:20:08 +01:00
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 16
uses: actions/setup-java@v3
with:
java-version: '16'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
2023-03-01 13:48:49 +01:00
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
2023-03-01 13:52:15 +01:00
- name: Get Version
run: |
echo "version_name=${{steps.fetch-version.outputs.VERSION_NAME}}" >> $GITHUB_ENV
- name: Upload to Modrinth & Hangar
uses: WiIIiam278/mc-publish@hangar
2023-03-01 13:48:49 +01:00
with:
modrinth-id: Q10irTG0
modrinth-featured: false
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
2023-04-23 19:13:07 +02:00
modrinth-version-type: alpha
hangar-id: William278/Velocitab
hangar-token: ${{ secrets.HANGAR_API_KEY }}
2023-04-23 19:13:07 +02:00
hangar-version-type: Alpha
hangar-game-versions: |
3.2
2023-03-11 02:30:00 +01:00
files: target/Velocitab-*.jar
2023-03-01 13:48:49 +01:00
name: Velocitab v${{ env.version_name }}
version: ${{ env.version_name }}
changelog: ${{ github.event.head_commit.message }}
loaders: |
velocity
dependencies: |
luckperms | suggests | *
papiproxybridge | suggests | *
miniplaceholders | suggests | *
2023-03-01 13:48:49 +01:00
game-versions: |
1.8
1.8.1
1.8.2
1.8.3
1.8.4
1.8.5
1.8.6
1.8.7
2023-10-12 15:03:21 +02:00
1.8.9
1.12.2
1.13
1.13.1
1.13.2
1.14
1.14.1
1.14.2
1.14.3
1.14.4
1.15
1.15.1
1.15.2
1.16
1.16.1
1.16.2
1.16.3
1.16.4
1.16.5
1.17
1.17.1
1.18
1.18.1
1.18.2
1.19
1.19.1
1.19.2
1.19.3
1.19.4
1.20
1.20.1
1.20.2
2023-03-01 13:48:49 +01:00
java: 16
- name: Upload GitHub Artifact
uses: actions/upload-artifact@v2
with:
name: Velocitab Plugin
path: target/Velocitab-*.jar