fix: 在构建流程中创建缺失的 index.html 文件以支持构建输出 #130
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: build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.23' | |
- name: Build | |
run: | | |
mkdir -p assets/dash/dashboard/apps/web-ele/dist | |
touch assets/dash/dashboard/apps/web-ele/dist/index.html | |
make init | |
make generate | |
make build | |
- name: Test | |
run: go test -v ./... |