Skip to content

Commit

Permalink
add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rlnt committed Aug 22, 2024
1 parent f68c9e6 commit 6f373e0
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
workflow_dispatch:
push:
branches:
- "1.21.1"
tags-ignore:
- "**"
paths:
- "gradle/**"
- "testmod_configs/**"
- "**.java"
- "**.kts"
- "**.properties"
- "**/build.yml"
pull_request:
branches:
- "1.21.1"
paths:
- "gradle/**"
- "testmod_configs/**"
- "**.java"
- "**.kts"
- "**.properties"
- "**/build.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
redirect:
uses: AlmostReliable/.github/.github/workflows/build.yml@main
with:
java-distribution: "microsoft"
java-version: "21"
61 changes: 61 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Release

on:
workflow_dispatch:
inputs:
target_version:
type: string
required: false
description: "mod version | empty = next option"
update_type:
type: choice
required: false
description: "update type"
default: "minor"
options:
- "major"
- "minor"
- "patch"
- "none"
release_type:
type: choice
required: true
description: "type of release"
default: "release"
options:
- "alpha"
- "beta"
- "release"
loaders:
type: choice
required: true
description: "loaders to release for"
default: "both"
options:
- "fabric"
- "forge"
- "both"
debug:
type: boolean
required: false
default: false
description: "enable debug mode (GitHub only)"

jobs:
redirect:
uses: AlmostReliable/.github/.github/workflows/release-nf.yml@main
secrets: inherit
with:
mod_name: "AlmostUnified" # name used for the output JAR files (use a dash instead of spaces)
curseforge_id: "633823" # ID of the project on CurseForge
modrinth_id: "sdaSaQEz" # ID of the project on Modrinth
dependencies: | # can be removed if there are no dependencies
jei(optional){curseforge:238222}{modrinth:u6dRKJwZ}
rei(optional){curseforge:310111}{modrinth:nfn13YXA}
emi(optional){curseforge:580555}{modrinth:fRiHVvU7}
kubejs(optional){curseforge:238086}{modrinth:umyGl7zF}
target_version: ${{ github.event.inputs.target_version }}
update_type: ${{ github.event.inputs.update_type }}
release_type: ${{ github.event.inputs.release_type }}
loaders: ${{ github.event.inputs.loaders }}
debug: ${{ github.event.inputs.debug }}

0 comments on commit 6f373e0

Please sign in to comment.