mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-24 00:28:04 -05:00
add workflows
This commit is contained in:
parent
f68c9e623e
commit
6f373e02f6
2 changed files with 98 additions and 0 deletions
37
.github/workflows/build.yml
vendored
Normal file
37
.github/workflows/build.yml
vendored
Normal file
|
@ -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
.github/workflows/release.yml
vendored
Normal file
61
.github/workflows/release.yml
vendored
Normal file
|
@ -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 }}
|
Loading…
Reference in a new issue