mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
* Update branding in docs * Update branding in README.md * Update branding in plugin READMEs * Update branding in plugins * Update branding in libraries * Update branding in the remaining places * Add CONTRIBUTING.md and LICENSE files * More branding in docs
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: Deploy FancyHolograms v2 (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 FancyHolograms v2
|
|
run: ./gradlew :plugins:fancyholograms-v2: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/fancyholograms-v2/snapshot_deployment_config.json
|
|
|
|
- name: Publish to reposilite (snapshots)
|
|
run: ./gradlew :plugins:fancyholograms-v2:api:publishAllPublicationsToFancyinnovationsSnapshotsRepository |