From f2acc3a91a9f8a713c1daedce25cdbc21a31cea7 Mon Sep 17 00:00:00 2001 From: MARohrdanz Date: Thu, 20 Jun 2024 14:51:18 -0500 Subject: [PATCH] Remove old js min files in Artifacts actions These files clutter up the directory, and make it difficult to determine which files are relevant to the current version. This addresses issue #528 --- .github/workflows/NG-CHM-Artifacts_push_main.yml | 2 +- .github/workflows/NG-CHM-Artifacts_release.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/NG-CHM-Artifacts_push_main.yml b/.github/workflows/NG-CHM-Artifacts_push_main.yml index 5595a0e2..5edef6ff 100644 --- a/.github/workflows/NG-CHM-Artifacts_push_main.yml +++ b/.github/workflows/NG-CHM-Artifacts_push_main.yml @@ -133,10 +133,10 @@ jobs: cp ../NGCHM/WebContent/ngChmApp.html viewer.standalone/ echo "Build tag: ${{ needs.make_build_tag.outputs.tag_name }}" > viewer.standalone/build_version.txt echo "Git hash: ${{ github.sha }}" >> viewer.standalone/build_version.txt + git rm viewer.build/server.app/javascript/*.js # rm old minified js files cp -r ../NGCHM/WebContent/server.app viewer.build/ echo "Build tag: ${{ needs.make_build_tag.outputs.tag_name }}" > viewer.build/server.app/build_version.txt echo "Git hash: ${{ github.sha }}" >> viewer.build/server.app/build_version.txt - rm -rf ../NGCHM/WebContent/server.app cp -r ../NGCHM/WebContent/ viewer.source/ echo "Build tag: ${{ needs.make_build_tag.outputs.tag_name }}" > viewer.source/WebContent/build_version.txt echo "Git hash: ${{ github.sha }}" >> viewer.source/WebContent/build_version.txt diff --git a/.github/workflows/NG-CHM-Artifacts_release.yml b/.github/workflows/NG-CHM-Artifacts_release.yml index 82551986..1a88b339 100644 --- a/.github/workflows/NG-CHM-Artifacts_release.yml +++ b/.github/workflows/NG-CHM-Artifacts_release.yml @@ -89,6 +89,7 @@ jobs: cp ../NGCHM/WebContent/ngChmApp.html viewer.standalone/ echo "Build tag: ${{ github.ref_name }}" > viewer.standalone/build_version.txt echo "Git hash: ${{ github.sha }}" >> viewer.standalone/build_version.txt + git rm viewer.build/server.app/javascript/*.js # rm old minified js files cp -r ../NGCHM/WebContent/server.app viewer.build/ echo "Build tag: ${{ github.ref_name }}" > viewer.build/server.app/build_version.txt echo "Git hash: ${{ github.sha }}" >> viewer.build/server.app/build_version.txt