Skip to content

Commit 9356c9e

Browse files
committed
Set workflow setting
1 parent b98a9a8 commit 9356c9e

98 files changed

Lines changed: 43 additions & 35574 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# 每次推送到 `master` 分支时触发这个“工作流程”
5+
# 如果你使用了别的分支名,请按需将 `master` 替换成你的分支名
6+
push:
7+
branches: [ master ]
8+
# 允许你在 GitHub 上的 Actions 标签中手动触发此“工作流程”
9+
workflow_dispatch:
10+
11+
# 允许 job 克隆 repo 并创建一个 page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v3
25+
# with:
26+
# path: . # 存储库中 Astro 项目的根位置。(可选)
27+
# node-version: 20 # 用于构建站点的特定 Node.js 版本,默认为 20。(可选)
28+
# package-manager: pnpm@latest # 应使用哪个 Node.js 包管理器来安装依赖项和构建站点。会根据存储库中的 lockfile 自动检测。(可选)
29+
30+
31+
deploy:
32+
needs: build
33+
runs-on: ubuntu-latest
34+
environment:
35+
name: github-pages
36+
url: ${{ steps.deployment.outputs.page_url }}
37+
steps:
38+
- name: Deploy to GitHub Pages
39+
id: deployment
40+
uses: actions/deploy-pages@v4

astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import tailwindcss from '@tailwindcss/vite';
55

66
// https://astro.build/config
77
export default defineConfig({
8+
site: 'https://linglambda.github.io',
9+
base: '/',
10+
811
//悬停预加载
912
prefetch: true,
1013

Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)