From 29254257509a93ef97ab5c8f45245c91d4ddaced Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Thu, 1 Jan 2026 18:41:03 -0500 Subject: [PATCH] docs: only release docs on new version --- .github/workflows/astro.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml index 2da5fc4..428b7b8 100644 --- a/.github/workflows/astro.yml +++ b/.github/workflows/astro.yml @@ -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 \ No newline at end of file + uses: actions/deploy-pages@v4