Skip to content

Commit b617b05

Browse files
committed
fix: improve workflow in GitHub Actions
1 parent f05f727 commit b617b05

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,17 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/checkout@v4
1515

16-
- name: Setup Node.js
17-
uses: actions/setup-node@v4
18-
with:
19-
node-version: 18
20-
cache: pnpm
21-
22-
- name: Setup pnpm
23-
uses: pnpm/action-setup@v2
24-
with:
25-
version: 9
26-
run_install: true
16+
- name: Build Docker image
17+
run: docker build -t annodocs-builder -f container/Dockerfile .
2718

28-
- name: Build docs
29-
run: pnpm run build
19+
- name: Extract built docs
20+
run: |
21+
docker create --name extract annodocs-builder
22+
docker cp extract:/app/dist ./dist
23+
docker rm -f extract
3024
3125
- name: Deploy to GitHub Pages
3226
uses: peaceiris/actions-gh-pages@v3
3327
with:
3428
github_token: ${{ secrets.GITHUB_TOKEN }}
35-
publish_dir: ./build
29+
publish_dir: ./dist

0 commit comments

Comments
 (0)