如何将裁剪后的字体部署到网站上
#878
-
我基于自己的文章内容对中文字体做裁剪后,将字体文件放在 name: GitHub Page
on:
push:
branches:
- main # main 更新触发
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true # clone submodules
fetch-depth: 0 # 克隆所有历史信息
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.117.0" # Hugo 版本
extended: true # hugo插件版 Stack主题 必须启用
- name: Cache resources # 缓存 resource 文件加快生成速度
uses: actions/cache@v3
with:
path: resources
# 检查照片文件变化
key: ${{ runner.os }}-hugocache-${{ hashFiles('content/**/*') }}
restore-keys: ${{ runner.os }}-hugocache-
- name: Build # 生成网页 删除无用 resource 文件 削减空行
run: hugo --minify --gc
- name: Deploy # 部署到 GitHub Page
uses: peaceiris/actions-gh-pages@v3
with:
# 如果在同一个仓库下使用请使用 github_token 并注释 deploy_key
# github_token: ${{ secrets.GITHUB_TOKEN }}
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# 如果在同一个仓库请注释
external_repository: Siya-33/blog
publish_dir: ./public
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
full_commit_message: Deploy from ${{ github.repository }}@${{ github.sha }} 🚀
|
Beta Was this translation helpful? Give feedback.
Answered by
Lovirr
Oct 3, 2023
Replies: 2 comments 3 replies
-
@Siya-33 |
Beta Was this translation helpful? Give feedback.
0 replies
-
应该放在static文件夹吧?那个才是存放静态资源的文件夹 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Siya-33
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
应该放在static文件夹吧?那个才是存放静态资源的文件夹