Skip to content

Commit

Permalink
Clean up repository and update configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
lvxuan149 committed Sep 17, 2024
1 parent a333850 commit b716b1e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 37 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/D.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy VuePress site to GitHub Pages

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build site
run: npm run build
- name: Create .nojekyll file
run: touch docs/.vuepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vuepress/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
base: '/[email protected]', // 如果您的仓库名是 lvxuan149.github.io,应该设置为 '/'
base: '/', // 修改为 '/',因为您的仓库名是 lvxuan149.github.io
title: "0xDragon888's blog",
description: '积跬步,记当下,好奇心,定瞬间。',
theme: 'vdoing',
Expand Down

0 comments on commit b716b1e

Please sign in to comment.