Skip to content

Commit

Permalink
add starter workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rlnt committed Mar 1, 2024
1 parent 4133310 commit 4a9224e
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
4 changes: 4 additions & 0 deletions workflow-templates/build-java17.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "AlmostReliable Java 17 Build Workflow",
"description": "Template workflow to build a project with Java 17 Gradle."
}
15 changes: 15 additions & 0 deletions workflow-templates/build-java17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build

on:
push:
branches:
- "$default-branch"
tags-ignore:
- "**"
pull_request:
branches:
- "$default-branch"

jobs:
redirect-workflow:
uses: AlmostReliable/.github/.github/workflows/build-java17.yml@main
4 changes: 4 additions & 0 deletions workflow-templates/release-java17.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "AlmostReliable Java 17 Release Workflow",
"description": "Template workflow to release a project with Java 17 Gradle."
}
61 changes: 61 additions & 0 deletions workflow-templates/release-java17.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)"

env:
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

jobs:
redirect-workflow:
uses: AlmostReliable/.github/.github/workflows/release-java17.yml@main
secrets: inherit
with:
mod_name: ${{ env.MOD_NAME }}
curseforge_id: ${{ env.CURSEFORGE_ID }}
modrinth_id: ${{ env.MODRINTH_ID }}
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 4a9224e

Please sign in to comment.