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
17
.github/workflows/astro.yml
vendored
17
.github/workflows/astro.yml
vendored
|
|
@ -2,10 +2,13 @@ name: Deploy to GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
tags:
|
||||||
|
- "v*"
|
||||||
paths:
|
paths:
|
||||||
- 'docs/**'
|
- "docs/**"
|
||||||
- '.github/workflows/**'
|
- ".github/workflows/**"
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -21,9 +24,9 @@ jobs:
|
||||||
- name: Install, build, and upload your site output
|
- name: Install, build, and upload your site output
|
||||||
uses: withastro/action@v4
|
uses: withastro/action@v4
|
||||||
with:
|
with:
|
||||||
path: ./docs # The root location of your Astro project inside the repository. (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)
|
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)
|
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:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
|
|
@ -34,4 +37,4 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue