forked from ja-che/hidimstat
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9b5793
commit c1779f0
Showing
1 changed file
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|