From 21031c9d8466f1cd5d58a35f3c761249613b46fe Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Mon, 25 May 2020 20:57:04 -0400 Subject: [PATCH 1/2] copy recursively --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 9afa9118..8cbb3895 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -26,7 +26,7 @@ jobs: clean: false - name: Move & Commit files run: | - mv ./build/html/*.* . && rm -rf ./build && rm-rf function_timer && ls -lah + cp -rp ./build/html/*.* . && rm -rf ./build && rm-rf function_timer && ls -lah git config --global user.name github-actions git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com' git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY From f6909671c6f09efd278a8ee758e7c6f598ca4353 Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Mon, 25 May 2020 20:59:18 -0400 Subject: [PATCH 2/2] remove braces in env var for git commit --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8cbb3895..6d4dff59 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -31,5 +31,5 @@ jobs: git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com' git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY git add *.* - git commit -am "Documentation for ${BUILD_SHA}" || true + git commit -am "Documentation for $BUILD_SHA" || true git push --force || true