Skip to content

Update issue templates #6

Update issue templates

Update issue templates #6

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Build Jar
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
if: "contains(github.event.head_commit.message, '[build]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Make Gradle Wrapper Executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build
run: ./gradlew clean build
- name: Upload forge artifacts
uses: kittaakos/upload-artifact-as-is@v0
with:
path: forge/build/libs/*.jar
- name: Upload fabric artifacts
uses: kittaakos/upload-artifact-as-is@v0
with:
path: fabric/build/libs/*.jar