Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
PasaOpasen committed Apr 13, 2024
1 parent 5f4be56 commit 8c8ea62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/deploy-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 *
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8c8ea62

Please sign in to comment.