Skip to content

config task api

config task api #38

Workflow file for this run

name: head
on:
push:
branches:
- '**'
tags-ignore:
- '*.*'
pull_request:
branches:
- '**'
tags-ignore:
- '*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- id: vars
run: |
echo "git_hash=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- run: chmod +x gradlew
- uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-${{ github.ref }}-${{ hashFiles('**/*.gradle.kts') }}
- run: ./gradlew build
env:
GIT_HASH: ${{ steps.vars.outputs.git_hash }}
- uses: actions/upload-artifact@v3
with:
name: wthit-fabric-${{ steps.vars.outputs.git_hash }}
path: "./platform/fabric/build/libs/**.jar"
- uses: actions/upload-artifact@v3
with:
name: wthit-forge-${{ steps.vars.outputs.git_hash }}
path: "./platform/forge/build/libs/**.jar"