Skip to content

chore(deps): bump org.projectlombok:lombok in /super (#523) #1278

chore(deps): bump org.projectlombok:lombok in /super (#523)

chore(deps): bump org.projectlombok:lombok in /super (#523) #1278

Workflow file for this run

name: Maven CI/CD
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
inputs:
evs_version:
description: "Overwrite EVS version (default to the one in release/version_input.txt)"
required: false
create_release:
description: "Produce the release artifacts"
required: false
default: false
type: boolean
jobs:
build_and_test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
# https://github.com/actions/setup-java?tab=readme-ov-file#caching-packages-dependencies
- name: ☕ Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
cache: 'maven'
- name: ✨ Fix permissions
run: |
chmod u+x builder/release.sh
- name: 👀 Detect wanted version
shell: bash
run: |
if [[ -z "${{ github.event.inputs.evs_version }}" ]]; then
export EVS_VERSION=$(head -n 1 release/version_input.txt)
else
export EVS_VERSION=${{ github.event.inputs.evs_version }}
fi
echo "EVS_VERSION=${EVS_VERSION}" >> $GITHUB_ENV
- name: 📨 Set wanted version
run: |
echo "${{ env.EVS_VERSION }}" > release/version_input.txt
- name: 🔨 Build project with Maven
shell: bash
run: |
cd builder && ./release.sh
- name: 🚧 Workaround actions/upload-artifact#176
run: |
echo "artifacts_path=$(realpath ../builds/${{ env.EVS_VERSION }})" >> $GITHUB_ENV
- name: 🧰 Create release zip
run: |
cd ${{ env.artifacts_path }}
find . -type f \( -name ".gitignore" -o -name ".gitkeep" \) -exec rm -f {} \;
zip -r -q EVS-${{ env.EVS_VERSION }}.zip .
- name: 📁 Archive artifacts
uses: actions/upload-artifact@v4
with:
name: EVS-build
path: "${{ env.artifacts_path }}/EVS-${{ env.EVS_VERSION }}.zip"
if-no-files-found: error
retention-days: 1
- uses: ncipollo/release-action@v1.14.0
name: 🤖 Create release on Github
if: github.event.inputs.create_release && contains(github.ref, 'main')
with:
artifacts: "${{ env.artifacts_path }}/EVS-${{ env.EVS_VERSION }}.zip"
allowUpdates: "true"
tag: "${{ env.EVS_VERSION }}"
commit: "main"
name: "EVS-${{ env.EVS_VERSION }}"