mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-05 23:33:36 +00:00
ci, fancydialogs: Add deployment config for FancyDialogs
This commit is contained in:
48
.github/workflows/deploy-release-fancydialogs.yml
vendored
Normal file
48
.github/workflows/deploy-release-fancydialogs.yml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
name: Deploy FancyDialogs (release)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
deploy-plugin:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cache Gradle dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.gradle
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'adopt'
|
||||
java-version: '21'
|
||||
|
||||
- name: Modify gradlew permissions
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
- name: Build FancyDialogs
|
||||
run: ./gradlew :plugins:fancydialogs:shadowJar
|
||||
|
||||
- name: Build deployment tool
|
||||
run: ./gradlew :tools:deployment:shadowJar
|
||||
|
||||
- name: Deploy
|
||||
env:
|
||||
MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }}
|
||||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
run:
|
||||
cd tools/deployment/build/libs &&
|
||||
java -jar deployment.jar ../../../../plugins/fancydialogs/release_deployment_config.json
|
||||
|
||||
- name: Publish to reposilite (releases)
|
||||
run: ./gradlew :plugins:fancydialogs:fd-api:publishAllPublicationsToFancyinnovationsReleasesRepository
|
||||
|
||||
- name: Publish to reposilite (snapshots)
|
||||
run: ./gradlew :plugins:fancydialogs:fd-api:publishAllPublicationsToFancyinnovationsSnapshotsRepository
|
||||
45
.github/workflows/deploy-snapshot-fancydialogs.yml
vendored
Normal file
45
.github/workflows/deploy-snapshot-fancydialogs.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Deploy FancyDialogs (snapshot)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
deploy-plugin:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cache Gradle dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.gradle
|
||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'adopt'
|
||||
java-version: '21'
|
||||
|
||||
- name: Modify gradlew permissions
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
- name: Build Fancydialogs
|
||||
run: ./gradlew :plugins:fancydialogs:shadowJar
|
||||
|
||||
- name: Build deployment tool
|
||||
run: ./gradlew :tools:deployment:shadowJar
|
||||
|
||||
- name: Deploy
|
||||
env:
|
||||
MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }}
|
||||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
run:
|
||||
cd tools/deployment/build/libs &&
|
||||
java -jar deployment.jar ../../../../plugins/fancydialogs/snapshot_deployment_config.json
|
||||
|
||||
- name: Publish to reposilite (snapshots)
|
||||
run: ./gradlew :plugins:fancydialogs:fd-api:publishAllPublicationsToFancyinnovationsSnapshotsRepository
|
||||
@@ -2,6 +2,13 @@ Commit hash: %COMMIT_HASH%
|
||||
|
||||
Commit message: %COMMIT_MESSAGE%
|
||||
|
||||
Changes:
|
||||
- Removed close action
|
||||
- Added console_command, player_command and send_to_server actions
|
||||
- Made dialog registry and action registry accessible from the API
|
||||
- Added confirmation dialogs to certain commands
|
||||
- Removed html encoding for default dialogs
|
||||
|
||||
*(The last commit message does not always directly reflect the changes related to this version.)*
|
||||
|
||||
Keep in mind that this is a snapshot version. Snapshot versions are **not** meant to be used in production. They are for **testing purposes only** and may contain bugs or incomplete features. Use at your own risk.
|
||||
@@ -1,3 +0,0 @@
|
||||
- Added support for Minecraft 1.21.5
|
||||
- Refactored config structure
|
||||
- Added `update_visibility_interval` config option
|
||||
@@ -1 +1 @@
|
||||
0.0.2
|
||||
0.0.3
|
||||
@@ -1,16 +1,15 @@
|
||||
{
|
||||
"project_name": "FancyDialogs",
|
||||
"project_id": "TODO",
|
||||
"project_id": "Sx6YwpnK",
|
||||
"plugin_jar_path": "../../../../plugins/fancydialogs/build/libs/FancyDialogs-%VERSION%.jar",
|
||||
"changelog_path": "../../../../plugins/fancydialogs/CHANGELOG.md",
|
||||
"version_path": "../../../../plugins/fancydialogs/VERSION",
|
||||
"supported_versions":[
|
||||
"supported_versions": [
|
||||
"1.21.6"
|
||||
],
|
||||
"channel": "RELEASE",
|
||||
"loaders": [
|
||||
"paper",
|
||||
"folia"
|
||||
"paper"
|
||||
],
|
||||
"featured": false
|
||||
}
|
||||
@@ -1,16 +1,15 @@
|
||||
{
|
||||
"project_name": "FancyDialogs",
|
||||
"project_id": "TODO",
|
||||
"project_id": "Sx6YwpnK",
|
||||
"plugin_jar_path": "../../../../plugins/fancydialogs/build/libs/FancyDialogs-%VERSION%.jar",
|
||||
"changelog_path": "../../../../plugins/fancydialogs/CHANGELOG-SNAPSHOT.md",
|
||||
"version_path": "../../../../plugins/fancydialogs/VERSION",
|
||||
"supported_versions":[
|
||||
"supported_versions": [
|
||||
"1.21.6"
|
||||
],
|
||||
"channel": "ALPHA",
|
||||
"loaders": [
|
||||
"paper",
|
||||
"folia"
|
||||
"paper"
|
||||
],
|
||||
"featured": false
|
||||
}
|
||||
Reference in New Issue
Block a user