Skip to content

Commit

Permalink
Try fixing Modrinth workflow?
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSpring committed May 20, 2024
1 parent 7d629ec commit 2c04e29
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/modrinth.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Modrinth

on:
release:
types:
- published

permissions:
contents: read

jobs:
build:
environment: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.PAT_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
# Taken from https://github.com/CaffeineMC/sodium-fabric/blob/1.19.3/dev/.github/workflows/gradle.yml
- name: Cache/Uncache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build artifacts
run: ./gradlew modrinth

0 comments on commit 2c04e29

Please sign in to comment.