Skip to content

Commit

Permalink
refactor: update github action script
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Jun 8, 2024
1 parent 154b0a1 commit 2a3dfdf
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/wangdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@main
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: 'latest'
- name: Install dependencies
run: npm install
- name: Build pages
run: npm run build
- name: Deploy to website
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4
with:
GIT_CONFIG_NAME: wangdoc-bot
GIT_CONFIG_EMAIL: yifeng.ruan@gmail.com
REPOSITORY_NAME: wangdoc/website
ACCESS_TOKEN: ${{ secrets.WANGDOC_BOT_TOKEN }}
BASE_BRANCH: master
BRANCH: master # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
TARGET_FOLDER: dist/es6
CLEAN: true # Automatically remove deleted files from the deploy branch
COMMIT_MESSAGE: update from ES6 tutorial
git-config-name: wangdoc-bot
git-config-email: yifeng.ruan@gmail.com
repository-name: wangdoc/website
token: ${{ secrets.WANGDOC_BOT_TOKEN }}
branch: master
folder: dist # The folder the action should deploy.
target-folder: dist/es6
clean: true # Automatically remove deleted files from the deploy branch
commit-message: update from ES6 tutorial


0 comments on commit 2a3dfdf

Please sign in to comment.