Skip to content

v2.5.6-mc1.19.3

v2.5.6-mc1.19.3 #213

Workflow file for this run

# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#publishing-using-gradle
name: Gradle Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- uses: eskatos/gradle-command-action@v1
env:
MODRINTH: ${{ secrets.MODRINTH }}
with:
gradle-version: 7.3
arguments: build additionalCopy modrinth
- name: Upload assets to GitHub
uses: AButler/[email protected]
with:
files: 'build/to_upload/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}