Skip to content

Update Build Action and Injection #4

Update Build Action and Injection

Update Build Action and Injection #4

Workflow file for this run

name: CI
on:
push:
branches: [ main, ci-cd-improvements ]
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
lfs: true
fetch-tags: true
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt-hotspot
- name: Set Variables
id: environment
shell: bash
run: |
LATEST_TAG=$(git describe --tags --abbrev=0)
echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
- name: Build plugin
run: |
chmod +x gradlew
./gradlew check 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.latest_tag }}
path: build/distributions/pluginfiles/*/*