mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
ci: add fancyholograms deployment pipeline
This commit is contained in:
39
.github/workflows/deployment/release-fancyholograms.yml
vendored
Normal file
39
.github/workflows/deployment/release-fancyholograms.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Deploy FancyHolograms (release)
|
||||||
|
|
||||||
|
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/deploymentConfig.json
|
||||||
Reference in New Issue
Block a user