-
Notifications
You must be signed in to change notification settings - Fork 14
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
1b587be
commit 767889a
Showing
1 changed file
with
22 additions
and
8 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 |
---|---|---|
|
@@ -147,12 +147,26 @@ jobs: | |
make pdocs | ||
mv ./docs/build/html ./public | ||
- name: Deploy to Github Page | ||
uses: JamesIves/[email protected] | ||
with: | ||
REPOSITORY_NAME: deepghs/imgutils-docs | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GIT_CONFIG_NAME: narugo1992 | ||
GIT_CONFIG_EMAIL: [email protected] | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: public # The folder the action should deploy. | ||
CLEAN: true # Automatically remove deleted files from the deploy branch | ||
run: | | ||
git config user.name narugo1992 | ||
git config user.email [email protected] | ||
git clone https://narugo1992:${{ secrets.GH_TOKEN }}@github.com/deepghs/imgutils-docs.git | ||
cd imgutils-docs | ||
git checkout gh-pages | ||
rm -rf * && cp -rf ../public/* . | ||
git add -A | ||
git diff-index --quiet HEAD || git commit -a -m "dev(narugo): auto documentation $(date -R)" | ||
git push origin gh-pages | ||
# | ||
# - name: Deploy to Github Page | ||
# uses: JamesIves/[email protected] | ||
# with: | ||
# REPOSITORY_NAME: deepghs/imgutils-docs | ||
# ACCESS_TOKEN: ${{ secrets.GH_TOKEN }} | ||
# GIT_CONFIG_NAME: narugo1992 | ||
# GIT_CONFIG_EMAIL: [email protected] | ||
# BRANCH: gh-pages # The branch the action should deploy to. | ||
# FOLDER: public # The folder the action should deploy. | ||
# CLEAN: true # Automatically remove deleted files from the deploy branch |