Skip to content

Commit

Permalink
Separate release build and clean up (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: Sanjula Ganepola <[email protected]>
  • Loading branch information
SanjulaGanepola authored Jul 23, 2024
1 parent e596adf commit fbced9f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,26 @@ jobs:
- name: Clean up Unnecessary Files
run: rm -fr ./.git ./docs

- name: Deploy to IBM i
- name: Build on IBM i
run: |
ici \
--rcwd "${{ env.remote_build_dir }}" \
--push "." \
--cmd "/QOpenSys/pkgs/bin/gmake --jobs=1 ${{ env.jar_file }}" \
--pull "." \
env:
IBMI_HOST: ${{ secrets.IBMI_HOST }}
IBMI_USER: ${{ secrets.IBMI_USER }}
IBMI_PASSWORD: ${{ secrets.IBMI_PASSWORD }}
IBMI_SSH_PORT: ${{ secrets.IBMI_SSH_PORT }}

- name: Clean up on IBM i
if: always()
run: |
ici \
--rcwd "${{ env.remote_build_dir }}" \
--ignore --cl "dltlib ${{ env.build_lib }}" \
--ignore --cl "dltlib ${{ env.dist_lib }}" \
--rcwd ".." \
--ignore --cmd "rm -fr ${{ env.remote_build_dir }} /QOpenSys/etc/manzan /opt/manzan"
env:
IBMI_HOST: ${{ secrets.IBMI_HOST }}
Expand Down

0 comments on commit fbced9f

Please sign in to comment.