Skip to content

Properly setup GitHub Actions #1

Properly setup GitHub Actions

Properly setup GitHub Actions #1

Workflow file for this run

#file: noinspection SpellCheckingInspection
name: Push (master)
on:
push:
branches:
- master
jobs:
dependencies:
name: Dependencies
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- uses: mikepenz/[email protected]
with:
use-gradlew: false
modrinth-description:
name: Update Modrinth Description
runs-on: ubuntu-latest
if: false # TODO Make description work on Modrinth
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- uses: gradle/gradle-build-action@v2
- name: Build
run: |
gradle modrinthSyncBody
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}