diff --git a/.github/workflows/release-fancyholograms.yml b/.github/workflows/deploy-release-fancyholograms.yml similarity index 86% rename from .github/workflows/release-fancyholograms.yml rename to .github/workflows/deploy-release-fancyholograms.yml index 5495f4c3..d8a51de8 100644 --- a/.github/workflows/release-fancyholograms.yml +++ b/.github/workflows/deploy-release-fancyholograms.yml @@ -35,5 +35,5 @@ jobs: - name: Deploy run: - - cd tools/deployment/build/libs - - java -jar deployment.jar ../../../../plugins/fancyholograms/deploymentConfig.json \ No newline at end of file + cd tools/deployment/build/libs && + java -jar deployment.jar ../../../../plugins/fancyholograms/release_deployment_config.json \ No newline at end of file diff --git a/.github/workflows/deploy-snapshot-fancyholograms.yml b/.github/workflows/deploy-snapshot-fancyholograms.yml new file mode 100644 index 00000000..a17bcfb0 --- /dev/null +++ b/.github/workflows/deploy-snapshot-fancyholograms.yml @@ -0,0 +1,39 @@ +name: Deploy FancyHolograms (snapshot) + +on: + workflow_dispatch: +jobs: + build-plugins: + 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 FancyHolograms + run: ./gradlew :plugins:fancyholograms:shadowJar + + - name: Build deployment tool + run: ./gradlew :tools:deployment:shadowJar + + - name: Deploy + run: + cd tools/deployment/build/libs && + java -jar deployment.jar ../../../../plugins/fancyholograms/snapshot_deployment_config.json \ No newline at end of file diff --git a/plugins/fancyholograms/deploymentConfig.json b/plugins/fancyholograms/release_deployment_config.json similarity index 100% rename from plugins/fancyholograms/deploymentConfig.json rename to plugins/fancyholograms/release_deployment_config.json diff --git a/plugins/fancyholograms/snapshot_deployment_config.json b/plugins/fancyholograms/snapshot_deployment_config.json new file mode 100644 index 00000000..b7be6951 --- /dev/null +++ b/plugins/fancyholograms/snapshot_deployment_config.json @@ -0,0 +1,27 @@ +{ + "project_id": "5QNgOj66", + "plugin_jar_path": "../../../../plugins/fancyholograms/build/libs/FancyHolograms-%VERSION%.jar", + "changelog_path": "../../../../plugins/fancyholograms/CHANGELOG.md", + "version_path": "../../../../plugins/fancyholograms/VERSION", + "supported_versions":[ + "1.19.4", + "1.20", + "1.20.1", + "1.20.2", + "1.20.3", + "1.20.4", + "1.20.5", + "1.20.6", + "1.21", + "1.21.1", + "1.21.2", + "1.21.3", + "1.21.4" + ], + "channel": "alpha", + "loaders": [ + "paper", + "folia" + ], + "featured": false +} \ No newline at end of file