mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 23:35:09 +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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [docs]
|
branches: [docs-v2]
|
||||||
paths:
|
paths:
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
- ".github/workflows/publish_docs.yml"
|
- ".github/workflows/publish_docs.yml"
|
||||||
|
|
@ -13,6 +13,10 @@ permissions:
|
||||||
pages: write
|
pages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./docs
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: pages
|
group: pages
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
@ -26,7 +30,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
|
|
@ -34,10 +38,11 @@ jobs:
|
||||||
version: 10
|
version: 10
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
cache-dependency-path: ./docs
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm i --frozen-lockfile
|
run: pnpm i --frozen-lockfile
|
||||||
|
|
@ -46,7 +51,7 @@ jobs:
|
||||||
run: pnpm docs:build
|
run: pnpm docs:build
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: docs/.vitepress/dist
|
path: docs/.vitepress/dist
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue