Skip to content

Merge pull request #398 from Piotrekol/WSThrottling #21

Merge pull request #398 from Piotrekol/WSThrottling

Merge pull request #398 from Piotrekol/WSThrottling #21

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- master
paths:
- "docs/**"
- .github/workflows/docs.yml
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: cd docs && yarn install --frozen-lockfile
- run: cd docs && yarn docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/docs/.vuepress/dist
commit_message: ${{ github.event.head_commit.message }}
keep_files: true