feat(Censor): 优化当敏感词列表数据过多时,页面渲染长时间等待的问题 (#212) #251
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: | |
env: | |
PROJECT_NAME: "sealdice-ui" | |
jobs: | |
build: | |
name: Build & Pre-release | |
permissions: | |
contents: write | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Code | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
- name: Build WebUI | |
run: npm run build | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.PROJECT_NAME }} | |
path: dist/ | |
- name: Prepare Zip | |
run: | | |
cd dist/ | |
zip -r ${{ env.PROJECT_NAME }}.zip . | |
- name: Pre-release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Latest Build | |
tag_name: pre-release | |
files: dist/${{ env.PROJECT_NAME }}.zip | |
body: "> ⚠️注意️️:这是自动构建的预发布版本,非正式版本!" | |
prerelease: true | |
token: ${{ secrets.GITHUB_TOKEN }} |