Skip to content

Commit

Permalink
Update build_docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
achamma723 authored Jul 9, 2024
1 parent 8c2254c commit e03934d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ jobs:
path: doc/_build/html
- name: Commit to main
run: |
git clone --no-checkout --depth 1 https://github.com/${{ github.repository_owner }}/hidimstat.git --branch gh-pages_1 --single-branch gh-pages_1
cp -r doc/_build/html/* gh-pages_1/
cd gh-pages_1
git clone --depth 1 https://github.com/${{ github.repository_owner }}/hidimstat.git
rm -Rf hidimstat/docs
mkdir hidimstat/docs
cp -r doc/_build/html hidimstat/docs
cd hidimstat
touch .nojekyll
git config --global user.email "[email protected]"
git config --global user.name "GitHub actions"
Expand All @@ -60,7 +62,7 @@ jobs:
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: gh-pages_1
directory: gh-pages_1
branch: main
directory: hidimstat
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e03934d

Please sign in to comment.