Skip to content

Commit

Permalink
dev(narugo): use a usable token
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Jan 24, 2024
1 parent 1b587be commit 767889a
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 767889a

Please sign in to comment.