Skip to content

bumpver: v2.0.0

bumpver: v2.0.0 #12

Workflow file for this run

name: Zip dist CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
remote_build_dir: /home/${{ secrets.IBMI_USER }}/build/${{ github.sha }}/
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Get Maven project version
run: |
echo "project_version=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:3.1.0:exec --file pom.xml)" >> $GITHUB_ENV
cat $GITHUB_ENV
- name: create jt400 psudo-directory
run: sudo mkdir -p /QIBM/ProdData/OS400/jt400/lib/
- name: change ownership of jt400 psudo-directory
run: sudo chown $USER /QIBM/ProdData/OS400/jt400/lib/
- name: fetch jt400.jar
run: sudo curl https://repo1.maven.org/maven2/net/sf/jt400/jt400/10.7/jt400-10.7.jar -o /QIBM/ProdData/OS400/jt400/lib/jt400.jar
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: create staging directory
run: |
mkdir -p staging/opt/mapepire/lib/
mkdir -p staging/opt/mapepire/bin/
- name: Populate staging directory
run: |
mv scripts/mapepire-start.sh staging/opt/mapepire/bin/mapepire
mv target/mapepire-server-${{ env.project_version }}-jar-with-dependencies.jar staging/opt/mapepire/lib/mapepire.jar
- name: Create distribution .zip
run: |
pushd staging/opt/
zip -r ../../mapepire-server-${{ env.project_version }}.zip mapepire
popd
- name: Upload dist artifact
uses: actions/upload-artifact@v3
with:
name: mapepire-server-${{ env.project_version }}.zip
path: mapepire-server-${{ env.project_version }}.zip