This repository has been archived by the owner on Jan 23, 2025. It is now read-only.
build(deps): bump me.shedaniel:RoughlyEnoughItems-fabric from 12.0.634 to 14.0.680 #896
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 18 | |
distribution: adopt | |
cache: gradle | |
- name: Cache .gradle | |
uses: actions/cache@v3 | |
with: | |
path: $USER_HOME/.gradle | |
key: ${{ runner.os }}-${{ hashFiles('*.gradle') }}-gradle-user-home | |
- name: Build | |
env: | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
run: | | |
chmod +x ./gradlew | |
./gradlew spotlessApply build | |
git config --global user.email [email protected] | |
git config --global user.name github-actions | |
git commit -m "style(license): format license header [ci skip]" -a || true | |
git push || true | |
- name: Publish | |
if: github.event_name == 'release' | |
env: | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
run: ./gradlew publish modrinth | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
path: build/libs | |
- name: Upload Release | |
uses: fnkr/github-action-ghr@v1 | |
if: github.event_name == 'release' | |
env: | |
GHR_PATH: build/libs | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |