From 44641f13d9fd5475066954b8ec216073009b58ba Mon Sep 17 00:00:00 2001 From: VitalyArt Date: Sat, 17 Feb 2024 02:21:51 +0600 Subject: [PATCH] fix --- .github/workflows/docs.yml | 7 ------- deploy-docs.sh | 6 +++++- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 181fcaf..3886b10 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,11 +14,4 @@ jobs: uses: actions/checkout@v4 - name: Build uses: actions/setup-node@v4 - - run: npm ci - - run: npm run docs:build - - name: setup git config - run: | - # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default - git config user.name "GitHub Actions Bot" - git config user.email "<>" - run: ./deploy-docs.sh diff --git a/deploy-docs.sh b/deploy-docs.sh index 81b4953..e995807 100755 --- a/deploy-docs.sh +++ b/deploy-docs.sh @@ -3,7 +3,8 @@ # abort on errors set -e -# build +# build\ +npm ci npm run docs:build # navigate into the build output directory @@ -12,6 +13,9 @@ cd docs/.vuepress/dist # if you are deploying to a custom domain # echo 'www.example.com' > CNAME +git config --global user.name "GitHub Actions Bot" +git config --global user.email "<>" + git init git add -A git commit -m 'docs'