Skip to content

Commit

Permalink
perf: use peaceiris/actions-gh-pages for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
orzyyyy authored and afc163 committed Nov 18, 2019
1 parent eefa24b commit c34f9ea
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/deploy-site.yml
Expand Up @@ -9,13 +9,20 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: checkout
uses: actions/checkout@master

- name: Deploy website
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: _site
BUILD_SCRIPT: npm install && npm run predeploy
- name: install
run: npm install

- name: build
run: npm run predeploy

- name: deploy
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACCESS_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./_site
with:
emptyCommits: false

0 comments on commit c34f9ea

Please sign in to comment.