docs: only release docs on new version

This commit is contained in:
Gabe Farrell 2026-01-01 18:41:03 -05:00
parent c346c7cb31
commit 2925425750

View file

@ -2,10 +2,13 @@ name: Deploy to GitHub Pages
on:
push:
branches: [main]
tags:
- "v*"
paths:
- 'docs/**'
- '.github/workflows/**'
- "docs/**"
- ".github/workflows/**"
workflow_dispatch:
permissions:
contents: read
@ -21,9 +24,9 @@ jobs:
- name: Install, build, and upload your site output
uses: withastro/action@v4
with:
path: ./docs # The root location of your Astro project inside the repository. (optional)
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
package-manager: yarn@1.22.22 # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
path: ./docs # The root location of your Astro project inside the repository. (optional)
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
package-manager: yarn@1.22.22 # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
deploy:
needs: build
@ -34,4 +37,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4