第二次修复磁贴图像链接无效的问题 #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 部署到生产站点 | |
on: | |
push: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 克隆存储库 | |
uses: actions/checkout@v4 | |
- name: 预处理-移除不需要的组件 | |
run: dotnet run --configuration Release --project ./src/AnEoT.Vintage.Tool/AnEoT.Vintage.Tool.csproj remove-unnecessary-component --webroot-path ${{ github.workspace }}/src/AnEoT.Vintage/wwwroot | |
- name: 构建主项目及生成静态网页 | |
run: dotnet run --configuration Release --project ./src/AnEoT.Vintage/AnEoT.Vintage.csproj -- static-only --ConvertWebP true --urls "http://localhost:5048" --RssBaseUri "http://aneot-vintage.arktca.com/" --RssIncludeAllArticles true --RssAddCssStyle true | |
- name: 配置 GitHub Pages | |
uses: actions/configure-pages@v4 | |
- name: 上传生成的静态网页 | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './src/AnEoT.Vintage/StaticWebSite' | |
- name: 将静态网页部署到 GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |