Skip to content

Revert "[maven-release-plugin] prepare release jmurmel-all-1.5.0" #12

Revert "[maven-release-plugin] prepare release jmurmel-all-1.5.0"

Revert "[maven-release-plugin] prepare release jmurmel-all-1.5.0" #12

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
# When a tag is pushed then also create a release,
# see https://github.com/softprops/action-gh-release
name: Create release
on:
push:
tags: "jmurmel-all*"
env:
JAVA_VERSION: 8
JAVA_TARGET: 8
permissions:
contents: read
jobs:
build:
permissions:
contents: write # for softprops/action-gh-release to create GitHub release
runs-on: ubuntu-latest
name: Release
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'zulu'
- name: Restore Maven repo
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- name: Build with Maven
run: mvn -V -B clean package -pl lambda,scripts -Dlaunch4j.skip=false -DskipTests=true -Djavac.target=${{ env.JAVA_TARGET }}
- name: Create Jar zipfile
run: zip -j ${{ github.ref_name }}-jar.zip LICENSE lambda/target/jmurmel.jar samples.murmel-mlib/mlib.lisp murmel-langref.md murmel-langref.html mlib.md mlib.html
- name: Create slim zipfile
run: zip -j ${{ github.ref_name }}-w64-slim.zip LICENSE scripts/target/jmurmel.exe samples.murmel-mlib/mlib.lisp murmel-langref.md murmel-langref.html mlib.md mlib.html && zip -r ${{ github.ref_name }}-w64-slim.zip legal/launch4j/
- name: Create release and upload files
uses: softprops/action-gh-release@v2
with:
prerelease: true
files: |
CHANGES
GETTING STARTED.txt
LICENSE
lambda/target/jmurmel.jar
samples.murmel-mlib/mlib.lisp
mlib.md
mlib.html
murmel-langref.html
murmel-langref.md
${{ github.ref_name }}-jar.zip
${{ github.ref_name }}-w64-slim.zip