Skip to content

Commit

Permalink
更新自动打包文件
Browse files Browse the repository at this point in the history
  • Loading branch information
CvCn committed Aug 6, 2024
1 parent 40766c4 commit 2e294cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ jobs:

- name: Package files as ZIP
run: |
# 获取工作目录的绝对路径
ROOT_DIR=$(pwd)
# 定义忽略文件和目录的列表
IGNORED_FILES="
.github/*
pkgmeta.yaml
.gitignore
${ROOT_DIR}/.github/*
${ROOT_DIR}/pkgmeta.yaml
${ROOT_DIR}/.gitignore
"
# 使用 zip 命令打包,并忽略指定的文件和目录
zip -r "${{ steps.vars.outputs.project_name }}-${{ github.ref_name }}.zip" . -x $IGNORED_FILES
Expand Down

0 comments on commit 2e294cd

Please sign in to comment.