Added Color Markdown + Cleanup of Markdown #78
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 Fabric | |
on: | |
pull_request: | |
branches: | |
- 1.21 | |
push: | |
branches: | |
- 1.21 | |
jobs: | |
build-fabric: | |
runs-on: ubuntu-latest | |
env: | |
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Set up Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Generate Gradle wrapper if not present | |
run: | | |
if [ ! -f "./gradlew" ]; then | |
gradle wrapper | |
fi | |
- name: Grant execute permission for Gradle wrapper | |
run: chmod +x ./gradlew | |
- name: Build for Fabric | |
run: ./gradlew build -p fabric |