Skip to content

Merge pull request #242 from D3SOX/dependabot/npm_and_yarn/vitepress-… #166

Merge pull request #242 from D3SOX/dependabot/npm_and_yarn/vitepress-…

Merge pull request #242 from D3SOX/dependabot/npm_and_yarn/vitepress-… #166

name: Build and Deploy
on:
push:
branches: [ master ]
jobs:
cd:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ 20 ]
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
- name: Setup node env 🏗
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies 👨🏻‍💻
run: yarn install --frozen-lockfile
- name: Generate 👷
run: yarn build
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vitepress/dist
commit_message: ${{ github.event.head_commit.message }}
cname: arch.d3sox.me