Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5317783f0 | ||
|
|
1f623d9501 | ||
|
|
16ce2ccbd2 | ||
|
|
4803212976 | ||
|
|
7a0b60c559 | ||
|
|
7a9d02673b |
@@ -1,18 +1,15 @@
|
||||
name: Release
|
||||
name: Publish Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "Release version (e.g. 1.1.0)"
|
||||
description: 'Version to release'
|
||||
required: true
|
||||
after-version:
|
||||
description: "Next snapshot version (e.g. 1.2.0-SNAPSHOT)"
|
||||
description: 'Snapshot version after release'
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
set-release-version:
|
||||
uses: ./.github/workflows/set-version.yml
|
||||
@@ -22,28 +19,36 @@ jobs:
|
||||
build:
|
||||
needs: set-release-version
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
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:
|
||||
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: Generate changelog
|
||||
- name: Build Changelog
|
||||
id: changelog
|
||||
uses: mikepenz/release-changelog-builder-action@v6
|
||||
with:
|
||||
commitMode: true
|
||||
mode: COMMIT
|
||||
toTag: ${{ github.ref }}
|
||||
configurationJson: |
|
||||
{
|
||||
"template": "#{{CHANGELOG}}",
|
||||
"commit_template": "- [`#{{SHORT_MERGE_SHA}}`](https://github.com/#{{OWNER}}/#{{REPO}}/commit/#{{MERGE_SHA}}) #{{TITLE}}",
|
||||
"categories": [
|
||||
{ "title": "## Features", "labels": ["feat", "feature"] },
|
||||
{ "title": "## Fixes", "labels": ["fix", "bug"] },
|
||||
@@ -53,16 +58,14 @@ jobs:
|
||||
{ "title": "## Build", "labels": ["build", "chore", "ci"] },
|
||||
{ "title": "## Other", "labels": [] }
|
||||
],
|
||||
"empty_template": "no changes",
|
||||
"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",
|
||||
"method": "match",
|
||||
"target": "$1"
|
||||
}
|
||||
],
|
||||
"template": "#{{CHANGELOG}}",
|
||||
"pr_template": "- [`#{{SHORT_MERGE_SHA}}`](https://github.com/#{{OWNER}}/#{{REPO}}/commit/#{{MERGE_SHA}}) #{{TITLE}}",
|
||||
"custom_placeholders": [
|
||||
{
|
||||
"name": "SHORT_MERGE_SHA",
|
||||
|
||||
@@ -1,30 +1,35 @@
|
||||
name: Set Version
|
||||
name: set-version
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "Version to set (e.g. 1.1.0 or 1.2.0-SNAPSHOT)"
|
||||
description: 'Version to set'
|
||||
required: true
|
||||
workflow_call:
|
||||
inputs:
|
||||
version:
|
||||
description: "Version to set"
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
set-version:
|
||||
name: Set Version
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
set-version:
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v7
|
||||
- name: Commit Version
|
||||
uses: stefanzweifel/git-auto-commit-action@v7
|
||||
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"
|
||||
version = "1.0.2"
|
||||
version = "1.0.4"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"description": "Bypass a potential Mojang blacklist of 6b6t - the biggest anarchy server in the world.",
|
||||
"authors": ["6b6t"],
|
||||
"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",
|
||||
"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.",
|
||||
"authors": ["6b6t"],
|
||||
"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",
|
||||
"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.",
|
||||
"authors": ["6b6t"],
|
||||
"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",
|
||||
"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.",
|
||||
"authors": ["6b6t"],
|
||||
"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",
|
||||
"sources": "https://github.com/6b6t/AnarchyMod"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user