Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 7 additions & 22 deletions .github/workflows/docs-dev.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: docs-dev

on: workflow_dispatch
# trigger deployment on every push to main branch
#push:
#branches-ignore: [master]
# trigger deployment manually
on:
pull_request:
branches-ignore:
- main

jobs:
docs-dev:
Expand All @@ -13,29 +12,15 @@ jobs:
pages: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

# This version of Vitepress need node v12
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: 24
- run: yarn install

# run build script
- name: Build VitePress site
run: yarn build
env:
VITEPRESS_BASE: /pinguinoide.github.io/

# please check out the docs of the workflow for more details
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
# deploy to gh-pages branch
target_branch: gh-pages
# deploy the default output dir of VitePress
build_dir: site/.vitepress/dist
env:
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/docs-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v6

# This version of Vitepress need node v12
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 24
- run: yarn install
Expand All @@ -31,7 +31,7 @@ jobs:
# please check out the docs of the workflow for more details
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
uses: crazy-max/ghaction-github-pages@v5
with:
# deploy to gh-pages branch
target_branch: gh-pages
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22-alpine
FROM node:24-alpine
WORKDIR /app
RUN apk add --no-cache git
RUN yarn global add vitepress babel-loader
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"build": "vitepress build site"
},
"dependencies": {
"vitepress": "^2.0.0-alpha.11"
"vitepress": "^2.0.0-alpha.17"
}
}