Skip to content

add the silent-echo and update the picture of relative path #6

add the silent-echo and update the picture of relative path

add the silent-echo and update the picture of relative path #6

Workflow file for this run

name: Deploy to GitHub Pages
on:
# ⚠️ 注意:如果你是通过 Fork 来的,你的主分支可能叫 'master' 而不是 'main'
# 请看你的 GitHub 仓库左上角显示的分支名,如果是 master,请把下面这行改为 [ master ]
push:
branches: [ master ]
# 允许手动触发
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# 使用 Astro 官方的 Action,它会自动检测你用的是 pnpm 还是 npm
# 并且会自动读取 astro.config.mjs 进行构建
- name: Install, build, and upload your site
uses: withastro/action@v2
# with:
# path: . # 如果你的 astro 项目不在根目录,可以在这里指定
# node-version: 20 # 默认使用最新稳定版,通常不需要手动指定
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4