mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-05 23:33:36 +00:00
fancynpcs: add deployment information
This commit is contained in:
47
.github/workflows/deploy-release-fancynpcs.yml
vendored
Normal file
47
.github/workflows/deploy-release-fancynpcs.yml
vendored
Normal file
@@ -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
|
||||
44
.github/workflows/deploy-snapshot-fancynpcs.yml
vendored
Normal file
44
.github/workflows/deploy-snapshot-fancynpcs.yml
vendored
Normal file
@@ -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
|
||||
1
plugins/fancynpcs/CHANGELOG.md
Normal file
1
plugins/fancynpcs/CHANGELOG.md
Normal file
@@ -0,0 +1 @@
|
||||
This is a test dev build.
|
||||
1
plugins/fancynpcs/VERSION
Normal file
1
plugins/fancynpcs/VERSION
Normal file
@@ -0,0 +1 @@
|
||||
2.4.4.255
|
||||
28
plugins/fancynpcs/release_deployment_config.json
Normal file
28
plugins/fancynpcs/release_deployment_config.json
Normal file
@@ -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
|
||||
}
|
||||
28
plugins/fancynpcs/snapshot_deployment_config.json
Normal file
28
plugins/fancynpcs/snapshot_deployment_config.json
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user