feat: add Actions

This commit is contained in:
imsyy 2023-12-02 09:11:18 +08:00
parent 3c2bc226ff
commit c93d7d206b
2 changed files with 39 additions and 1 deletions

38
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,38 @@
# Dev 分支推送部署预览
## 仅部署 Win 端
name: Build Dev
on:
push:
branches:
- dev
- master
jobs:
release:
name: Build Website
runs-on: windows-latest
steps:
# 检出 Git 仓库
- name: Check out git repository
uses: actions/checkout@v4.1.1
# 安装 Node.js
- name: Install Node.js
uses: actions/setup-node@v4.0.0
with:
node-version: "18.x"
# 安装项目依赖
- name: Install Dependencies
run: npm install
# 构建程序
- name: Build Website
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# 上传构建产物
- name: Upload artifacts
uses: actions/upload-artifact@v3.1.3
with:
name: Home
path: dist

View File

@ -54,12 +54,12 @@
@click="musicListShow = false"
/>
<Player
ref="playerRef"
:songServer="playerData.server"
:songType="playerData.type"
:songId="playerData.id"
:volume="volumeNum"
:shuffle="false"
ref="playerRef"
/>
</div>
</Transition>