mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43: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%
|
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.)*
|
*(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.
|
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,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"project_name": "FancyDialogs",
|
"project_name": "FancyDialogs",
|
||||||
"project_id": "TODO",
|
"project_id": "Sx6YwpnK",
|
||||||
"plugin_jar_path": "../../../../plugins/fancydialogs/build/libs/FancyDialogs-%VERSION%.jar",
|
"plugin_jar_path": "../../../../plugins/fancydialogs/build/libs/FancyDialogs-%VERSION%.jar",
|
||||||
"changelog_path": "../../../../plugins/fancydialogs/CHANGELOG.md",
|
"changelog_path": "../../../../plugins/fancydialogs/CHANGELOG.md",
|
||||||
"version_path": "../../../../plugins/fancydialogs/VERSION",
|
"version_path": "../../../../plugins/fancydialogs/VERSION",
|
||||||
@@ -9,8 +9,7 @@
|
|||||||
],
|
],
|
||||||
"channel": "RELEASE",
|
"channel": "RELEASE",
|
||||||
"loaders": [
|
"loaders": [
|
||||||
"paper",
|
"paper"
|
||||||
"folia"
|
|
||||||
],
|
],
|
||||||
"featured": false
|
"featured": false
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"project_name": "FancyDialogs",
|
"project_name": "FancyDialogs",
|
||||||
"project_id": "TODO",
|
"project_id": "Sx6YwpnK",
|
||||||
"plugin_jar_path": "../../../../plugins/fancydialogs/build/libs/FancyDialogs-%VERSION%.jar",
|
"plugin_jar_path": "../../../../plugins/fancydialogs/build/libs/FancyDialogs-%VERSION%.jar",
|
||||||
"changelog_path": "../../../../plugins/fancydialogs/CHANGELOG-SNAPSHOT.md",
|
"changelog_path": "../../../../plugins/fancydialogs/CHANGELOG-SNAPSHOT.md",
|
||||||
"version_path": "../../../../plugins/fancydialogs/VERSION",
|
"version_path": "../../../../plugins/fancydialogs/VERSION",
|
||||||
@@ -9,8 +9,7 @@
|
|||||||
],
|
],
|
||||||
"channel": "ALPHA",
|
"channel": "ALPHA",
|
||||||
"loaders": [
|
"loaders": [
|
||||||
"paper",
|
"paper"
|
||||||
"folia"
|
|
||||||
],
|
],
|
||||||
"featured": false
|
"featured": false
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user