Skip to content

Commit

Permalink
ci: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nailiable committed Aug 9, 2024
1 parent f2f9233 commit 9882384
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 96 deletions.
96 changes: 0 additions & 96 deletions .github/workflows/ci.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 以下以一个构建vue项目的yml文件为例子
name: Deploy

on:
push:
branches:
- main # 这里只配置了main分支,所以只有推送main分支才会触发以下任务
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 14.x
- run: node -v
- run: npm install
- run: npm run build
- name: Deploy # 部署
uses: JamesIves/[email protected]
with:
branch: gh-pages # 部署后提交到那个分支
folder: dist # 这里填打包好的目录名称

0 comments on commit 9882384

Please sign in to comment.