Skip to content

Merge pull request #88 from Baka632/240929-FixLayout #105

Merge pull request #88 from Baka632/240929-FixLayout

Merge pull request #88 from Baka632/240929-FixLayout #105

Workflow file for this run

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 --urls "http://localhost:5048" --BaseUri "http://aneot-vintage.arktca.com/"
- 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