player-pronouns/.github/workflows/release.yml

46 lines
1.2 KiB
YAML
Raw Permalink Normal View History

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:
2024-07-01 15:58:16 +00:00
java-version: 21
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and publish with gradle
uses: gradle/gradle-build-action@v2
with:
2022-08-17 14:13:07 +00:00
arguments: modrinth publish
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
2022-08-17 14:13:07 +00:00
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
- name: Upload GitHub release
uses: AButler/upload-release-assets@v2.0
with:
files: 'build/libs/player-pronouns-*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}