diff --git a/.github/deploy-gh-pages.sh b/.github/deploy-gh-pages.sh index 9902d81..15be942 100755 --- a/.github/deploy-gh-pages.sh +++ b/.github/deploy-gh-pages.sh @@ -2,7 +2,8 @@ set -eu if [ ! -d doсumentation ]; then - echo 'Error: invalid directory. Deploy from repo root.' + echo "Error: invalid directory *$PWD*. Deploy from repo root." + ls -lah exit 1 fi @@ -22,7 +23,7 @@ head=$(git rev-parse HEAD) git clone -b gh-pages "https://pasaopasen:$GH_PASSWORD@github.com/$GITHUB_REPOSITORY.git" gh-pages mkdir -p gh-pages/docs -cp -R documentation/* gh-pages/docs/ +cp -R documentation/geneticalgorithm2/* gh-pages/docs/ cd gh-pages sitemap git add * diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 7523e35..08eea14 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -38,4 +38,4 @@ jobs: - name: Deploy docs env: GH_PASSWORD: ${{ secrets.GITHUB_TOKEN }} - run: .github/deploy-gh-pages.sh + run: bash .github/deploy-gh-pages.sh