Skip to content

Update Build Action and add Release Action #19

Update Build Action and add Release Action

Update Build Action and add Release Action #19

Workflow file for this run

name: Build
on:
push:
branches: [ main, ci-cd-improvements ]
pull_request:
jobs:
build:
name: Build and upload plugin artifact
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
lfs: true
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt-hotspot
- name: Run Gradle Check # also ensures gradle is downloaded
run: |
chmod +x gradlew
./gradlew check
- name: Set Variables
id: environment
shell: bash
run: echo "version=$(./gradlew printVersion --console=plain -q)" >> $GITHUB_OUTPUT
- name: Build plugin
run: ./gradlew buildPlugin
- name: Unpack unsigned plugin for repackaging
shell: bash
run: |
cd ${{ github.workspace }}/build/distributions
unzip *.zip -d pluginfiles
- name: Upload built plugin
uses: actions/upload-artifact@v4
with:
name: autoconfig-plugin-${{ steps.environment.outputs.version }}
path: build/distributions/pluginfiles/*/*