github actions: try to improve deployment, bin zips second attempt
* invoke maven twice as the antrun:run@prepare-github-release goal
apparently runs before everything else and bin zip is empty
@@ -16,8 +16,10 @@ jobs:
java-version: '11'
distribution: 'adopt'
cache: maven
- - name: Build with Maven # build, test & package sources & create 3 ZIP for all bin, doc and src deliverables!
- run: mvn -B install antrun:run@prepare-github-release -Ppedantic,prepare-release -e --file pom.xml
+ - name: Maven build # build, test
+ run: mvn -B install -Ppedantic -e --file pom.xml
+ - name: Maven package # package sources & create 3 ZIP for all bin, doc and src deliverables!
+ run: mvn -B antrun:run@prepare-github-release -Ppedantic,prepare-release -e --file pom.xml
- name: Read pom.xml to get version for new release # The following step reads the pom.xml from repo and use its version for the release
run: |
echo "release_version=$(cat pom.xml | grep -a -m 1 "<version>" | sed 's/.*<version>//p' | head -1 | sed 's/<\/version>//p' | head -1)" >> $GITHUB_ENV
