Skip to content

Commit

Permalink
feat: add Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
imsyy committed Dec 2, 2023
1 parent 3c2bc22 commit c93d7d2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
# 安装 Node.js
- name: Install Node.js
uses: actions/[email protected]
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/[email protected]
with:
name: Home
path: dist
2 changes: 1 addition & 1 deletion src/components/Music.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c93d7d2

Please sign in to comment.