Skip to content

Commit

Permalink
[CI](test):编译过后把dist打包成压缩文件放到release里面
Browse files Browse the repository at this point in the history
  • Loading branch information
lixin59 committed Feb 10, 2022
1 parent cc89855 commit 0a6989b
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,25 @@ jobs:
- name: Build frontend
run: yarn build

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
# 压缩dist目录
- name: Compressed file
run: zip -r omsui.zip ./dist

# 创建release文件
- name: release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
# 部署到 gh-pages 分支
target_branch: gh-pages
# 部署目录为Vite项目的默认输出目录
build_dir: ./dist
files: "omsui.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Deploy to GitHub Pages
# uses: crazy-max/ghaction-github-pages@v2
# with:
# # 部署到 gh-pages 分支
# target_branch: gh-pages
# # 部署目录为Vite项目的默认输出目录
# build_dir: ./dist
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0a6989b

Please sign in to comment.