Build Plugin (Local) #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |