Skip to content

Commit

Permalink
chore: update gh-action
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurk91 committed Jul 6, 2021
1 parent 92caf28 commit a64ca81
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- dev
- 8.x
pull_request:
branches:
- master
Expand All @@ -16,6 +17,7 @@ jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 5

strategy:
matrix:
Expand All @@ -27,7 +29,7 @@ jobs:
persist-credentials: false

- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -36,16 +38,14 @@ jobs:
- run: bash <(curl -s https://codecov.io/bash)
- run: yarn run build
- run: yarn run docs
env:
CI: true

- name: Deploy to gh-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
SINGLE_COMMIT: true
CLEAN: true
token: ${{ secrets.ACCESS_TOKEN }}
branch: gh-pages
folder: docs
single-commit: true
clean: true

0 comments on commit a64ca81

Please sign in to comment.