Skip to content

Commit

Permalink
workflow: update for VitePress V2
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Oct 23, 2024
1 parent c863217 commit 7771cc0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/crowdin-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ jobs:
persist-credentials: false
submodules: recursive

- uses: actions/setup-node@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

# Build the site using VuePress
# Build the site using Vitepress
# No point pushing to Crowdin if the site build is failing
- name: Run VuePress
- name: Build site
run: npm run docs:build

- name: Push to Crowdin
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Deploy site
on:
push:
branches: [ master ]
paths:
- docs/**
- .github/workflows/publish.yml
- package.json
workflow_dispatch:

jobs:
Expand All @@ -22,21 +18,22 @@ jobs:
- name: Configure GitHub Pages
uses: actions/configure-pages@v5

- uses: actions/setup-node@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Run VuePress
# Build the site using VuePress
- name: Build site
run: npm run docs:build

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: "docs/.vuepress/dist"
path: docs/.vitepress/dist

# Deployment job
deploy:
Expand Down

0 comments on commit 7771cc0

Please sign in to comment.