Skip to content

Commit

Permalink
更新 build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulian233 authored May 30, 2024
1 parent edcff79 commit 857cbfd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
name: Build Page

on: [ push, workflow_dispatch ]
on:
push:
paths-ignore:
- 'README.md'
- '.gitignore'

jobs:
build-and-deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Vitepress
run: npm install vitepress

- name: Build and Deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TARGET_REPO: Wulian233/vmct-website-beta
TARGET_BRANCH: gh_pages
BUILD_SCRIPT: npm run build
BUILD_DIR: .vitepress/dist/
BUILD_DIR: .vitepress/dist/

0 comments on commit 857cbfd

Please sign in to comment.