OSDN Git Service

[fix] : Add all files
authorhayao <hayao@fascode.net>
Sun, 24 Oct 2021 11:38:59 +0000 (20:38 +0900)
committerhayao <hayao@fascode.net>
Sun, 24 Oct 2021 11:38:59 +0000 (20:38 +0900)
.github/workflows/hugo.yaml

index 2f12cf5..b0668cc 100644 (file)
@@ -80,13 +80,14 @@ jobs:
           git config remote.origin.url "git@github.com:hayao0819/hayao0819.github.io.git"
           echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
           rm -rf ./blog/src/themes
+          git rm --cached -r *
           git add -A
           if ! git diff --cached --quiet; then
             git commit -m "deploy: ${GITHUB_SHA}" -a
           else
             echo "Nothing has been commited"
           fi
-          git pull --allow-unrelated-histories origin gh-pages
+          git pull --allow-unrelated-histories origin gh-pages
           git checkout -b gh-pages
           git push origin gh-pages --force
     
\ No newline at end of file