Skip to content

chore(deps): bump JamesIves/github-pages-deploy-action #148

chore(deps): bump JamesIves/github-pages-deploy-action

chore(deps): bump JamesIves/github-pages-deploy-action #148

Workflow file for this run

---
name: Build and Deploy
on:
push:
workflow_dispatch:
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
id: node-version
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Restore Cache
uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ steps.node-version.outputs.version }}-${{ hashFiles('package-lock.json') }}
- name: Install dependenciee
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build
run: npm run docs:build
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
single-commit: true
clean: true