Skip to content

v2.4.2

v2.4.2 #13

Workflow file for this run

---
name: "Build and publish"
on:
release:
types: [published]
permissions:
contents: write
jobs:
build:
name: "Build"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build/libs/*.jar
publish:
name: "Publish"
needs: "build"
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- uses: actions/download-artifact@v3
with:
name: build
path: build/libs
- uses: Kir-Antipov/[email protected]
with:
files: build/libs/!(*-@(dev|sources|javadoc)).jar
game-version-filter: betas
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-game-versions: b1.7.3
modrinth-id: ${{ vars.MODRINTH_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-files: |
build/libs/!(*-@(dev|sources|javadoc)).jar
build/libs/*-@(dev|sources|javadoc).jar