From 8a3a818f4c7be812a968c1729b4b19d503f5a8de Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Tue, 14 Mar 2023 14:37:31 -0700 Subject: [PATCH] make exist folder to avoid loop --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35a9e73..62d4197 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,8 @@ jobs: - uses: actions/checkout@v3 with: submodules: true + - name: Create dist Folder + run: "mkdir -p dist" - name: Remove existing dist files run: "rm -f dist/*" - name: Copy files to dist folder @@ -27,6 +29,7 @@ jobs: js_engine: 'uglify-js' - name: Commit Distribution Files uses: stefanzweifel/git-auto-commit-action@v4 + if: ${{ github.event_name == 'release' }} with: repository: 'dist' commit_message: "Github Action: JS Distribution files"