diff --git a/.github/workflows/deploy-release-fancynpcs.yml b/.github/workflows/deploy-release-fancynpcs.yml new file mode 100644 index 00000000..85be5659 --- /dev/null +++ b/.github/workflows/deploy-release-fancynpcs.yml @@ -0,0 +1,47 @@ +name: Deploy FancyNpcs (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 FancyNpcs + run: ./gradlew :plugins:fancynpcs:shadowJar + + - name: Build deployment tool + run: ./gradlew :tools:deployment:shadowJar + + - name: Deploy + env: + MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }} + run: + cd tools/deployment/build/libs && + java -jar deployment.jar ../../../../plugins/fancynpcs/release_deployment_config.json + + - name: Publish to reposilite (releases) + run: ./gradlew :plugins:fancynpcs:api:publishAllPublicationsToFancypluginsReleasesRepository + + - name: Publish to reposilite (snapshots) + run: ./gradlew :plugins:fancynpcs:api:publishAllPublicationsToFancypluginsSnapshotsRepository \ No newline at end of file diff --git a/.github/workflows/deploy-snapshot-fancynpcs.yml b/.github/workflows/deploy-snapshot-fancynpcs.yml new file mode 100644 index 00000000..21b80838 --- /dev/null +++ b/.github/workflows/deploy-snapshot-fancynpcs.yml @@ -0,0 +1,44 @@ +name: Deploy FancyNpcs (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 FancyNpcs + run: ./gradlew :plugins:fancynpcs:shadowJar + + - name: Build deployment tool + run: ./gradlew :tools:deployment:shadowJar + + - name: Deploy + env: + MODRINTH_API_KEY: ${{ secrets.MODRINTH_API_KEY }} + run: + cd tools/deployment/build/libs && + java -jar deployment.jar ../../../../plugins/fancynpcs/snapshot_deployment_config.json + + - name: Publish to reposilite (snapshots) + run: ./gradlew :plugins:fancynpcs:api:publishAllPublicationsToFancypluginsSnapshotsRepository \ No newline at end of file diff --git a/plugins/fancynpcs/CHANGELOG.md b/plugins/fancynpcs/CHANGELOG.md new file mode 100644 index 00000000..55c2455b --- /dev/null +++ b/plugins/fancynpcs/CHANGELOG.md @@ -0,0 +1 @@ +This is a test dev build. \ No newline at end of file diff --git a/plugins/fancynpcs/VERSION b/plugins/fancynpcs/VERSION new file mode 100644 index 00000000..d9b19460 --- /dev/null +++ b/plugins/fancynpcs/VERSION @@ -0,0 +1 @@ +2.4.4.255 \ No newline at end of file diff --git a/plugins/fancynpcs/release_deployment_config.json b/plugins/fancynpcs/release_deployment_config.json new file mode 100644 index 00000000..0445cc5c --- /dev/null +++ b/plugins/fancynpcs/release_deployment_config.json @@ -0,0 +1,28 @@ +{ + "project_id": "EeyAn23L", + "plugin_jar_path": "../../../../plugins/fancynpcs/build/libs/FancyNpcs-%VERSION%.jar", + "changelog_path": "../../../../plugins/fancynpcs/CHANGELOG.md", + "version_path": "../../../../plugins/fancynpcs/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", + "1.21.5" + ], + "channel": "RELEASE", + "loaders": [ + "paper", + "folia" + ], + "featured": true +} \ No newline at end of file diff --git a/plugins/fancynpcs/snapshot_deployment_config.json b/plugins/fancynpcs/snapshot_deployment_config.json new file mode 100644 index 00000000..fc8c4007 --- /dev/null +++ b/plugins/fancynpcs/snapshot_deployment_config.json @@ -0,0 +1,28 @@ +{ + "project_id": "EeyAn23L", + "plugin_jar_path": "../../../../plugins/fancynpcs/build/libs/FancyNpcs-%VERSION%.jar", + "changelog_path": "../../../../plugins/fancynpcs/CHANGELOG.md", + "version_path": "../../../../plugins/fancynpcs/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", + "1.21.5" + ], + "channel": "ALPHA", + "loaders": [ + "paper", + "folia" + ], + "featured": false +} \ No newline at end of file