Skip to content

Commit

Permalink
简化发布流程
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyile committed Nov 23, 2024
1 parent bca0c70 commit 89aba24
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

# 2. 构建并打包
- name: Build and package
run: |
mkdir -p dist
# 假设你需要将代码打包成 tar.gz 文件
tar -czvf dist/release-name-v${{ github.ref_name }}.tar.gz .
# 3. 创建 Release 并上传源码包
# 2. 创建 Release 和上传源码包
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: dist/*.tar.gz # 上传生成的压缩包
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 89aba24

Please sign in to comment.