Skip to content

Commit

Permalink
chore: Update dependencies and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yostane committed Aug 12, 2024
1 parent 2850029 commit ebf69ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/vuepress-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,26 @@
name: Deploy to ghpages

on:
# trigger deployment on every push to main branch
push:
branches: [main]
# trigger deployment manually
workflow_dispatch:

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
# fetch all commits to get last updated time or other git log info
fetch-depth: 0

- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# choose node.js version to use
node-version: 18

# run build script
node-version: lts/*
- name: Build VuePress site
run: cd docs && npm install && npm run docs:build

# 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@v2
with:
# deploy to gh-pages branch
target_branch: gh-pages
# deploy the default output dir of VuePress
build_dir: docs/src/.vuepress/dist
env:
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
Expand Down
3 changes: 3 additions & 0 deletions edition.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
},
{
"path": "docs/src/assets"
},
{
"path": ".github"
}
],
"settings": {}
Expand Down

0 comments on commit ebf69ee

Please sign in to comment.