mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 13:55:08 +00:00
fix: Contain all docs and related in docs folder
The package.json and pnpm-lock.yaml are not part of the main repo but specific to the docs. The workflow will now target this folder for running.
This commit is contained in:
parent
a48633d33c
commit
c81d6c794b
3 changed files with 9 additions and 4 deletions
13
.github/workflows/publish_docs.yml
vendored
13
.github/workflows/publish_docs.yml
vendored
|
|
@ -2,7 +2,7 @@ name: Deploy Frappe Docker Docs to GitHub Pages
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [docs]
|
||||
branches: [docs-v2]
|
||||
paths:
|
||||
- "docs/**"
|
||||
- ".github/workflows/publish_docs.yml"
|
||||
|
|
@ -13,6 +13,10 @@ permissions:
|
|||
pages: write
|
||||
id-token: write
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./docs
|
||||
|
||||
concurrency:
|
||||
group: pages
|
||||
cancel-in-progress: true
|
||||
|
|
@ -26,7 +30,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
|
|
@ -34,10 +38,11 @@ jobs:
|
|||
version: 10
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: "pnpm"
|
||||
cache-dependency-path: ./docs
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm i --frozen-lockfile
|
||||
|
|
@ -46,7 +51,7 @@ jobs:
|
|||
run: pnpm docs:build
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
uses: actions/upload-pages-artifact@v4
|
||||
with:
|
||||
path: docs/.vitepress/dist
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue