mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
* ci: Use FancyVerteiler for FD snapshot * Update configs * Revert some stuff * Use FancyVerteiler for all plugins * Fixes * Fix * Delete deployment tool
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Deploy FancyNpcs (snapshot)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
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
|
|
env:
|
|
RELEASE_CHANNEL: 'snapshot'
|
|
run: ./gradlew :plugins:fancynpcs:shadowJar
|
|
|
|
- name: Deploy
|
|
uses: fancyinnovations/fancyverteiler@main
|
|
with:
|
|
config_path: "/plugins/fancynpcs/snapshot_deployment_config.json"
|
|
modrinth_api_key: ${{ secrets.MODRINTH_API_KEY }}
|
|
discord_webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
|
|
|
# - name: Publish to reposilite (snapshots)
|
|
# run: ./gradlew :plugins:fancynpcs:fn-api:publishAllPublicationsToFancyinnovationsSnapshotsRepository |