diff --git a/.github/workflows/deploy-release-fancydialogs.yml b/.github/workflows/deploy-release-fancydialogs.yml new file mode 100644 index 00000000..772e1ad7 --- /dev/null +++ b/.github/workflows/deploy-release-fancydialogs.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/deploy-snapshot-fancydialogs.yml b/.github/workflows/deploy-snapshot-fancydialogs.yml new file mode 100644 index 00000000..108da7ac --- /dev/null +++ b/.github/workflows/deploy-snapshot-fancydialogs.yml @@ -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 \ No newline at end of file diff --git a/plugins/fancydialogs/CHANGELOG-SNAPSHOT.md b/plugins/fancydialogs/CHANGELOG-SNAPSHOT.md index 54d28fa4..726fb971 100644 --- a/plugins/fancydialogs/CHANGELOG-SNAPSHOT.md +++ b/plugins/fancydialogs/CHANGELOG-SNAPSHOT.md @@ -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. \ No newline at end of file diff --git a/plugins/fancydialogs/CHANGELOG.md b/plugins/fancydialogs/CHANGELOG.md index 14c630e9..e69de29b 100644 --- a/plugins/fancydialogs/CHANGELOG.md +++ b/plugins/fancydialogs/CHANGELOG.md @@ -1,3 +0,0 @@ -- Added support for Minecraft 1.21.5 -- Refactored config structure -- Added `update_visibility_interval` config option \ No newline at end of file diff --git a/plugins/fancydialogs/VERSION b/plugins/fancydialogs/VERSION index 7bcd0e36..6812f812 100644 --- a/plugins/fancydialogs/VERSION +++ b/plugins/fancydialogs/VERSION @@ -1 +1 @@ -0.0.2 \ No newline at end of file +0.0.3 \ No newline at end of file diff --git a/plugins/fancydialogs/release_deployment_config.json b/plugins/fancydialogs/release_deployment_config.json index 6ce15dee..73b2b332 100644 --- a/plugins/fancydialogs/release_deployment_config.json +++ b/plugins/fancydialogs/release_deployment_config.json @@ -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 } \ No newline at end of file diff --git a/plugins/fancydialogs/snapshot_deployment_config.json b/plugins/fancydialogs/snapshot_deployment_config.json index 296dc3a7..cd8ec23b 100644 --- a/plugins/fancydialogs/snapshot_deployment_config.json +++ b/plugins/fancydialogs/snapshot_deployment_config.json @@ -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 } \ No newline at end of file