From c72218f96913b698e196884da787aa07531cfee1 Mon Sep 17 00:00:00 2001 From: unclekingpin Date: Thu, 18 May 2023 13:33:22 -0700 Subject: [PATCH] destination_dir check --- .github/workflows/build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1755424d3..ef66b06ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,11 +21,9 @@ jobs: run: npm run lint - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 - env: - DESTINATION_DIR: `[[ "${{ github.ref_name }}" != "pages-ci" ]] && echo ${{ github.ref_name }}` with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build - destination_dir: $DESTINATION_DIR + destination_dir: ${{ github.ref_name != 'development' && github.ref_name || "") }} keep_files: true allow_empty_commit: true