Skip to content

Commit

Permalink
Update to new standards (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal-Spider committed Jun 4, 2024
1 parent 1ea8f92 commit e5849bd
Show file tree
Hide file tree
Showing 219 changed files with 2,845 additions and 10,538 deletions.
20 changes: 15 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Disable autocrlf on generated files, they always generate with LF
# Add any extra files or paths here to make git stop saying they
# are changed when only line endings change.
src/generated/**/.cache/cache text eol=lf
src/generated/**/*.json text eol=lf
* text eol=lf
*.bat text eol=lf
*.patch text eol=lf
*.java text eol=lf
*.gradle text eol=lf
*.png binary
*.gif binary
*.exe binary
*.dll binary
*.jar binary
*.lzma binary
*.zip binary
*.pyd binary
*.cfg text eol=lf
*.jks binary
9 changes: 9 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Analyze Workflow

on:
workflow_dispatch:

jobs:
call-analyze-workflow:
uses: crystal-nest/.github/.github/workflows/analyze.yml@main
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/close_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Close Inactive Issue

on:
schedule:
- cron: "00 00 * * *"

jobs:
call-analyze-workflow:
permissions:
issues: write
pull-requests: write
uses: crystal-nest/.github/.github/workflows/close_issue.yml@main
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Pull Request Workflow

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review, review_requested]

jobs:
call-analyze-workflow:
uses: crystal-nest/.github/.github/workflows/analyze.yml@main
secrets: inherit
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Workflow

on:
workflow_dispatch:
inputs:
version:
type: string
description: Version number
required: true

jobs:
call-analyze-workflow:
uses: crystal-nest/.github/.github/workflows/analyze.yml@main
secrets: inherit
call-version-update-workflow:
needs: call-analyze-workflow
permissions:
contents: write
uses: crystal-nest/.github/.github/workflows/version_update.yml@main
with:
version: ${{ github.event.inputs.version }}
secrets: inherit
call-release-workflow:
needs: [call-analyze-workflow, call-version-update-workflow]
permissions:
contents: write
packages: write
uses: crystal-nest/.github/.github/workflows/release.yml@main
secrets: inherit
54 changes: 54 additions & 0 deletions .github/workflows/single_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Single Release Workflow

on:
workflow_dispatch:
inputs:
loader_forge:
type: boolean
description: Forge Loader
default: false
loader_fabric:
type: boolean
description: Fabric Loader
default: false
loader_neoforge:
type: boolean
description: NeoForge Loader
default: false
loader_common:
type: boolean
description: Common Loader
default: false
platform_maven:
type: boolean
description: Publish to Maven
default: false
platform_github:
type: boolean
description: Publish to GitHub
default: false
platform_curseforge:
type: boolean
description: Publish to CurseForge
default: false
platform_modrinth:
type: boolean
description: Publish to Modrinth
default: false

jobs:
call-workflow:
permissions:
contents: write
packages: write
uses: crystal-nest/.github/.github/workflows/single_release.yml@main
with:
loader_forge: ${{ github.event.inputs.loader_forge }}
loader_fabric: ${{ github.event.inputs.loader_fabric }}
loader_neoforge: ${{ github.event.inputs.loader_neoforge }}
loader_common: ${{ github.event.inputs.loader_common }}
platform_maven: ${{ github.event.inputs.platform_maven }}
platform_github: ${{ github.event.inputs.platform_github }}
platform_curseforge: ${{ github.event.inputs.platform_curseforge }}
platform_modrinth: ${{ github.event.inputs.platform_modrinth }}
secrets: inherit
21 changes: 3 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,20 @@ bin
.metadata
.classpath
.project
eclipse

# idea
out
*.ipr
*.iws
*.iml
.idea

# vscode
bin/
.classpath
.project
.vscode
.idea/*
!.idea/scopes

# gradle
build
out
classes
.gradle

# other
eclipse
run
runs
.fabric
.forge

# macos
*.DS_Store

# api keys
api-keys.properties
3 changes: 3 additions & 0 deletions .idea/scopes/Fabric_sources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/scopes/Forge_sources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e5849bd

Please sign in to comment.