2022-07-17 19:37:06 +00:00
|
|
|
name: Fabric Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- published
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/loom-cache
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
gradle-
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 17
|
|
|
|
|
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
|
|
|
|
2022-07-17 19:39:36 +00:00
|
|
|
- name: Build and publish with gradle
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
with:
|
2022-07-17 19:49:09 +00:00
|
|
|
arguments: modrinth
|
2022-07-17 19:37:06 +00:00
|
|
|
env:
|
|
|
|
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
|
|
|
|
|
|
|
- name: Upload GitHub release
|
|
|
|
uses: AButler/upload-release-assets@v2.0
|
|
|
|
with:
|
|
|
|
files: 'build/libs/player-pronouns-*.jar'
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|