Skip to content

Commit ed34439

Browse files
_
1 parent 0503b60 commit ed34439

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@ jobs:
3737
- name: Checkout code
3838
uses: actions/checkout@v4
3939

40-
- name: Set up Node.js
41-
uses: actions/setup-node@v4
42-
with:
43-
node-version: '24'
44-
4540
- name: Install pnpm
4641
uses: pnpm/action-setup@v4
4742
with:
4843
version: 10
4944

45+
- name: Set up Node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: '24'
49+
cache: 'pnpm'
50+
cache-dependency-path: './afterpython/_website/pnpm-lock.yaml'
51+
5052
- name: Set up Python
5153
uses: actions/setup-python@v5
5254
with:
@@ -67,7 +69,7 @@ jobs:
6769
- name: Build website
6870
run: ap build
6971
env:
70-
BASE_PATH: /afterpython
72+
BASE_PATH: '/${{ github.event.repository.name }}'
7173

7274
- name: Upload artifact
7375
uses: actions/upload-pages-artifact@v3

afterpython/templates/deploy-workflow-template.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@ jobs:
3737
- name: Checkout code
3838
uses: actions/checkout@v4
3939

40-
- name: Set up Node.js
41-
uses: actions/setup-node@v4
42-
with:
43-
node-version: '24'
44-
4540
- name: Install pnpm
4641
uses: pnpm/action-setup@v4
4742
with:
4843
version: 10
4944

45+
- name: Set up Node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: '24'
49+
cache: 'pnpm'
50+
cache-dependency-path: './afterpython/_website/pnpm-lock.yaml'
51+
5052
- name: Set up Python
5153
uses: actions/setup-python@v5
5254
with:
@@ -67,7 +69,7 @@ jobs:
6769
- name: Build website
6870
run: ap build
6971
env:
70-
BASE_PATH: /afterpython
72+
BASE_PATH: '/${{ github.event.repository.name }}'
7173

7274
- name: Upload artifact
7375
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)