Skip to content

Deploy

Deploy #14

Workflow file for this run

name: Deploy
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
deployments: write
jobs:
deploy:
name: Deploy docs to Live Site
runs-on: ubuntu-latest
steps:
- name: Checkout release tag
uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name || github.ref }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24.16.0"
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./build --project-name=nvm-windows-docs --branch=main
gitHubToken: ${{ secrets.GITHUB_TOKEN }}