mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 13:38:15 -08:00
docs: only release docs on new version
This commit is contained in:
parent
c346c7cb31
commit
2925425750
1 changed files with 10 additions and 7 deletions
15
.github/workflows/astro.yml
vendored
15
.github/workflows/astro.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue