Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5317783f0 | ||
|
|
1f623d9501 | ||
|
|
16ce2ccbd2 | ||
|
|
4803212976 | ||
|
|
7a0b60c559 | ||
|
|
7a9d02673b |
@@ -1,18 +1,15 @@
|
|||||||
name: Release
|
name: Publish Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "Release version (e.g. 1.1.0)"
|
description: 'Version to release'
|
||||||
required: true
|
required: true
|
||||||
after-version:
|
after-version:
|
||||||
description: "Next snapshot version (e.g. 1.2.0-SNAPSHOT)"
|
description: 'Snapshot version after release'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
set-release-version:
|
set-release-version:
|
||||||
uses: ./.github/workflows/set-version.yml
|
uses: ./.github/workflows/set-version.yml
|
||||||
@@ -22,28 +19,36 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
needs: set-release-version
|
needs: set-release-version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- uses: actions/setup-java@v5
|
- name: Set up Gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v5
|
||||||
|
|
||||||
|
- name: Set up JDK 21
|
||||||
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
java-version: '21'
|
||||||
java-version: 21
|
distribution: 'temurin'
|
||||||
|
|
||||||
- uses: gradle/actions/setup-gradle@v5
|
- name: Build with Gradle
|
||||||
|
run: ./gradlew build
|
||||||
|
|
||||||
- run: ./gradlew build
|
- name: Build Changelog
|
||||||
|
|
||||||
- name: Generate changelog
|
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: mikepenz/release-changelog-builder-action@v6
|
uses: mikepenz/release-changelog-builder-action@v6
|
||||||
with:
|
with:
|
||||||
commitMode: true
|
mode: COMMIT
|
||||||
|
toTag: ${{ github.ref }}
|
||||||
configurationJson: |
|
configurationJson: |
|
||||||
{
|
{
|
||||||
|
"template": "#{{CHANGELOG}}",
|
||||||
|
"commit_template": "- [`#{{SHORT_MERGE_SHA}}`](https://github.com/#{{OWNER}}/#{{REPO}}/commit/#{{MERGE_SHA}}) #{{TITLE}}",
|
||||||
"categories": [
|
"categories": [
|
||||||
{ "title": "## Features", "labels": ["feat", "feature"] },
|
{ "title": "## Features", "labels": ["feat", "feature"] },
|
||||||
{ "title": "## Fixes", "labels": ["fix", "bug"] },
|
{ "title": "## Fixes", "labels": ["fix", "bug"] },
|
||||||
@@ -53,16 +58,14 @@ jobs:
|
|||||||
{ "title": "## Build", "labels": ["build", "chore", "ci"] },
|
{ "title": "## Build", "labels": ["build", "chore", "ci"] },
|
||||||
{ "title": "## Other", "labels": [] }
|
{ "title": "## Other", "labels": [] }
|
||||||
],
|
],
|
||||||
|
"empty_template": "no changes",
|
||||||
"label_extractor": [
|
"label_extractor": [
|
||||||
{
|
{
|
||||||
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
|
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
|
||||||
"on_property": "title",
|
"on_property": "title",
|
||||||
"method": "match",
|
|
||||||
"target": "$1"
|
"target": "$1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"template": "#{{CHANGELOG}}",
|
|
||||||
"pr_template": "- [`#{{SHORT_MERGE_SHA}}`](https://github.com/#{{OWNER}}/#{{REPO}}/commit/#{{MERGE_SHA}}) #{{TITLE}}",
|
|
||||||
"custom_placeholders": [
|
"custom_placeholders": [
|
||||||
{
|
{
|
||||||
"name": "SHORT_MERGE_SHA",
|
"name": "SHORT_MERGE_SHA",
|
||||||
|
|||||||
@@ -1,30 +1,35 @@
|
|||||||
name: Set Version
|
name: set-version
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "Version to set (e.g. 1.1.0 or 1.2.0-SNAPSHOT)"
|
description: 'Version to set'
|
||||||
required: true
|
required: true
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "Version to set"
|
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
set-version:
|
set-version:
|
||||||
|
name: Set Version
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Set version
|
- name: Set Version
|
||||||
run: sed -i "s/version = \".*\"/version = \"${{ inputs.version }}\"/" build.gradle.kts
|
run: sed -i "s/version = \".*\"/version = \"${{ inputs.version }}\"/" build.gradle.kts
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v7
|
- name: Commit Version
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v7
|
||||||
with:
|
with:
|
||||||
commit_message: "chore(release): bump version to ${{ inputs.version }}"
|
commit_message: 'chore(release): bump version to ${{ inputs.version }}'
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "net.blockhost"
|
group = "net.blockhost"
|
||||||
version = "1.0.2"
|
version = "1.0.4"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Bypass a potential Mojang blacklist of 6b6t - the biggest anarchy server in the world.",
|
"description": "Bypass a potential Mojang blacklist of 6b6t - the biggest anarchy server in the world.",
|
||||||
"authors": ["6b6t"],
|
"authors": ["6b6t"],
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://6b6t.org",
|
"homepage": "https://www.6b6t.org/?utm_source=anarchymod&utm_medium=mod_menu&utm_campaign=evergreen_website&utm_content=description_link",
|
||||||
"issues": "https://github.com/6b6t/AnarchyMod/issues",
|
"issues": "https://github.com/6b6t/AnarchyMod/issues",
|
||||||
"sources": "https://github.com/6b6t/AnarchyMod"
|
"sources": "https://github.com/6b6t/AnarchyMod"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Bypass a potential Mojang blacklist of 6b6t - the biggest anarchy server in the world.",
|
"description": "Bypass a potential Mojang blacklist of 6b6t - the biggest anarchy server in the world.",
|
||||||
"authors": ["6b6t"],
|
"authors": ["6b6t"],
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://6b6t.org",
|
"homepage": "https://www.6b6t.org/?utm_source=anarchymod&utm_medium=mod_menu&utm_campaign=evergreen_website&utm_content=description_link",
|
||||||
"issues": "https://github.com/6b6t/AnarchyMod/issues",
|
"issues": "https://github.com/6b6t/AnarchyMod/issues",
|
||||||
"sources": "https://github.com/6b6t/AnarchyMod"
|
"sources": "https://github.com/6b6t/AnarchyMod"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Bypass a potential Mojang blacklist of 6b6t - the biggest anarchy server in the world.",
|
"description": "Bypass a potential Mojang blacklist of 6b6t - the biggest anarchy server in the world.",
|
||||||
"authors": ["6b6t"],
|
"authors": ["6b6t"],
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://6b6t.org",
|
"homepage": "https://www.6b6t.org/?utm_source=anarchymod&utm_medium=mod_menu&utm_campaign=evergreen_website&utm_content=description_link",
|
||||||
"issues": "https://github.com/6b6t/AnarchyMod/issues",
|
"issues": "https://github.com/6b6t/AnarchyMod/issues",
|
||||||
"sources": "https://github.com/6b6t/AnarchyMod"
|
"sources": "https://github.com/6b6t/AnarchyMod"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Bypass a potential Mojang blacklist of 6b6t - the biggest anarchy server in the world.",
|
"description": "Bypass a potential Mojang blacklist of 6b6t - the biggest anarchy server in the world.",
|
||||||
"authors": ["6b6t"],
|
"authors": ["6b6t"],
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://6b6t.org",
|
"homepage": "https://www.6b6t.org/?utm_source=anarchymod&utm_medium=mod_menu&utm_campaign=evergreen_website&utm_content=description_link",
|
||||||
"issues": "https://github.com/6b6t/AnarchyMod/issues",
|
"issues": "https://github.com/6b6t/AnarchyMod/issues",
|
||||||
"sources": "https://github.com/6b6t/AnarchyMod"
|
"sources": "https://github.com/6b6t/AnarchyMod"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user