Skip to content

Commit

Permalink
Merge pull request #1 from xiangtianyu/plugin-build-workflow
Browse files Browse the repository at this point in the history
Plugin build workflow
  • Loading branch information
xiangtianyu authored Aug 10, 2024
2 parents 3953a09 + 0100cdf commit bf8b798
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Plugin

on:
workflow_dispatch:
inputs:
version:
description: 'Plugin version'
required: true
default: '1.0.0'

jobs:
build:
runs-on: ubuntu-latest
environment:
name: ${{ vars.DEVPILOT_ENV }}

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: |
echo "${{ vars.DEVPILOT_CONFIG }}" >> src/main/resources/config/local.properties
- name: Build plugin
run: ./gradlew buildPlugin

- name: Upload plugin artifact
uses: actions/upload-artifact@v2
with:
name: plugin-artifact
path: build/distributions/DevPilot-*.zip

0 comments on commit bf8b798

Please sign in to comment.