更新 README.md #88
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
# This workflow will build and upload test artifact | |
# Simple workflow with ignoring condition to prevent unneccessary build | |
# To download artifact check on job task | |
name: Build Test Artifact | |
on: | |
push: | |
branches: | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
build: | |
name: Build and Upload Artifact | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Gather Gradle properties | |
uses: madhead/read-java-properties@latest | |
id: gradle_properties | |
with: | |
file: gradle.properties | |
all: true | |
- name: Grant Execute Permission for gradlew | |
run: chmod +x ./gradlew | |
- name: Change mod version | |
run: sed -i "s/mod_version.*=.*/mod_version = snapshot-${{ github.run_number}}/g" gradle.properties | |
- name: Setup Java | |
uses: actions/[email protected] | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Build | |
run: ./gradlew build | |
- name: Upload Build Artifacts | |
uses: actions/[email protected] | |
with: | |
name: ResourceModLoader-snapshot-${{ github.run_number}}.jar | |
path: build/libs |