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 f9b5793 commit c1779f0
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,18 @@ jobs:
path: doc/_build/html
- name: Commit to main
run: |
git clone --depth 1 https://github.com/${{ github.repository_owner }}/hidimstat.git
rm -Rf hidimstat/doc/_build
mkdir hidimstat/doc/_build
ls -a
ls hidimstat
ls hidimstat/doc
cp -r doc/_build/html hidimstat/doc/_build
cd hidimstat
git clone --no-checkout --depth 1 https://github.com/${{ github.repository_owner }}/hidimstat.git --branch gh-pages_1 --single-branch gh-pages_!
cp -r doc/_build/html/* gh-pages_1/
cd gh-pages_1
touch .nojekyll
git config --global user.email "[email protected]"
git config --global user.name "GitHub actions"
ls doc/_build
git add .
git status
git commit -m "Update documentation" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
directory: hidimstat
branch: gh-pages_1
directory: gh-pages_1
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c1779f0

Please sign in to comment.