fix(ci): use working-directory instead of cd everywhere #113
@@ -98,19 +98,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
|
|
||||||
|
- name: Generate site content
|
||||||
|
run: python3 docs/build-manual.py --site
|
||||||
|
|
||||||
- name: Build documentation site
|
- name: Build documentation site
|
||||||
|
working-directory: docs/site
|
||||||
run: |
|
run: |
|
||||||
python3 docs/build-manual.py --site
|
|
||||||
cd docs/site
|
|
||||||
npm ci
|
npm ci
|
||||||
npx astro build
|
npx astro build
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Pages
|
- name: Deploy to Cloudflare Pages
|
||||||
|
working-directory: docs/site
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
||||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
||||||
run: |
|
run: |
|
||||||
cd docs/site
|
|
||||||
npx --yes wrangler pages deploy dist/ \
|
npx --yes wrangler pages deploy dist/ \
|
||||||
--project-name=fish-config-docs \
|
--project-name=fish-config-docs \
|
||||||
--branch=main \
|
--branch=main \
|
||||||
|
|||||||
Reference in New Issue
Block a user