Skip to content

Merge pull request #288 from PeculiarVentures/ci-publish #24

Merge pull request #288 from PeculiarVentures/ci-publish

Merge pull request #288 from PeculiarVentures/ci-publish #24

Workflow file for this run

name: Build and Deploy documentation
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup environment
run: sudo apt-get install libpcsclite1 libpcsclite-dev
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn
- name: Build docs
run: npm run docs
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.6.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
CLEAN: true