You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/deploy.yml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
name: Deploy to GitHub Pages
2
2
3
3
on:
4
-
#Trigger the workflow every time you push to the `main` branch
5
-
#Using a different branch name? Replace `main` with your branch’s name
4
+
#每次推送到 `main` 分支时触发这个“工作流程”
5
+
#如果你使用了别的分支名,请按需将 `main` 替换成你的分支名
6
6
push:
7
-
branches: [main]
8
-
#Allows you to run this workflow manually from the Actions tab on GitHub.
7
+
branches: [main]
8
+
#允许你在 GitHub 上的 Actions 标签中手动触发此“工作流程”
9
9
workflow_dispatch:
10
10
11
-
#Allow this job to clone the repo and create a page deployment
11
+
#允许 job 克隆 repo 并创建一个 page deployment
12
12
permissions:
13
13
contents: read
14
14
pages: write
@@ -20,12 +20,12 @@ jobs:
20
20
steps:
21
21
- name: Checkout your repository using git
22
22
uses: actions/checkout@v4
23
-
- name: Install, build, and upload your site output
24
-
uses: withastro/action@v4
23
+
- name: Install, build, and upload your site
24
+
uses: withastro/action@v3
25
25
# with:
26
-
# path: . # The root location of your Astro project inside the repository. (optional)
27
-
# node-version: 22 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
28
-
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
0 commit comments