Skip to content

Commit

Permalink
[mod] 修改流程
Browse files Browse the repository at this point in the history
  • Loading branch information
Borber committed Nov 22, 2023
1 parent 9a77bd9 commit 252dd29
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- v.*

jobs:
create-release:
prelease:
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changelog_reader.outputs.changes }}
Expand All @@ -30,6 +30,7 @@ jobs:
version: ${{ steps.get_version.outputs.version }}

build:
needs: prelease
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -89,9 +90,24 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Tran ${{ needs.create_release.outputs.version }}
name: Tran ${{ needs.prelease.outputs.version }}
body: |
${{ needs.create_release.outputs.changes }}
${{ needs.prelease.outputs.changes }}
files: release/*
draft: false
draft: true
prerelease: false
release:
needs: [prelease, build]
runs-on: ubuntu-latest
steps:
- name: Upload release assets
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Tran ${{ needs.prelease.outputs.version }}
body: |
${{ needs.prelease.outputs.changes }}
files: release/*
draft: true
prerelease: false

0 comments on commit 252dd29

Please sign in to comment.