Skip to content

Pin workflow actions version #34

Pin workflow actions version

Pin workflow actions version #34

name: Notes Build and Deploy
on:
workflow_dispatch: {}
push:
branches:
- docs
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/[email protected]
with:
node-version: 18
cache: yarn
- name: Install all dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn docs:build
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
path: .vitepress/dist
- name: Deploy
id: deployment
uses: actions/[email protected]