Skip to content

Build Plugin (Local) #10

Build Plugin (Local)

Build Plugin (Local) #10

name: Build Plugin (Local)
on:
workflow_dispatch:
inputs:
version:
description: 'Plugin version'
required: true
default: '1.0.0'
jobs:
build:
runs-on: ubuntu-latest
environment:
name: local
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Set Config
run: |
mkdir src/main/resources/config
touch src/main/resources/config/local.properties
echo "${{ vars.DEVPILOT_CONFIG }}" >> src/main/resources/config/local.properties
- name: Build plugin
run: ./gradlew buildPlugin
- name: Upload plugin artifact
uses: actions/upload-artifact@v4
with:
name: DevPilot-local
path: build/distributions/DevPilot-*.zip