Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunnky committed Sep 3, 2024
0 parents commit 4f8ad6a
Show file tree
Hide file tree
Showing 19 changed files with 2,706 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug Report
about: Report a Bug or an Issue with this Plugin.
title: ''
labels: bug
assignees: ''

---

## Description (Required)
<!-- A clear and detailed description of what exactly the Issue consists of. -->
<!-- Please try to write as much as possible. "it doesn't work" is not sufficient. -->
<!-- Try to write at least 4-6 sentences. -->

## Steps to reproduce the Issue (Required)
<!-- Youtube Videos and Screenshots are recommended! -->

## Expected behavior (Required)
<!-- What did you expect to happen? -->

## Server Log / Error Report
<!-- Take a look at your Server Log and please provide any error reports you can find via https://pastebin.com/ -->
<!-- We may discard your Issue if you just post it here, as it's unreadable for us. Please use Pastebin! -->

## Environment (Required)
<!-- We may also close your Issue if you are not providing the exact version numbers. -->
<!-- "latest" IS NOT A VERSION NUMBER. -->
<!-- You can also just run "/sf versions" and show us a screenshot of that. -->

- Minecraft Version:
- CS-CoreLib Version:
- Slimefun Version:
- Plugin Version:
58 changes: 58 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Build with Maven
run: mvn clean package

- name: Upload JAR Artifact
uses: actions/upload-artifact@v3
with:
name: SlimeVision.jar
path: target/*.jar

- name: Generate random number for tag
id: random_tag
run: echo "TAG_NAME=build-$(date +%s)-$RANDOM" >> $GITHUB_ENV

- name: Debug TAG_NAME
run: echo "TAG_NAME is ${{ env.TAG_NAME }}"

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
release_name: "SlimeVision"
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: target/SlimeVision.jar
asset_name: SlimeVision.jar
asset_content_type: application/java-archive
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/bin/
/.settings/
/target/
/.idea/
*.iml
.project
.classpath
dependency-reduced-pom.xml
.DS_Store
Loading

0 comments on commit 4f8ad6a

Please sign in to comment.