Skip to content

Commit

Permalink
fix: 修正 v3 构建
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Jul 12, 2024
1 parent 4bd0971 commit 7ea9275
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*' # Push events to matching v*, i.e. v1.0, v20.15.10
- v3.*

jobs:
build:
Expand Down Expand Up @@ -90,13 +90,19 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Create Release
- name: Create Draft
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: Release ${{ env.version }}
draft: false
prerelease: false
draft: true
prerelease: false

- name: Create Release
run: |
gh release edit ${{ env.version }} --draft=false --latest=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7ea9275

Please sign in to comment.