Skip to content

Commit 87f95c8

Browse files
committed
build: fix release assets action
1 parent ae96135 commit 87f95c8

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/release-assets.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ jobs:
1010
build:
1111
uses: ./.github/workflows/build.yml
1212

13+
version:
14+
uses: ./.github/workflows/version.yml
15+
1316
release:
14-
needs: build
17+
needs:
18+
- build
19+
- version
20+
1521
runs-on: ubuntu-latest
1622

1723
steps:
@@ -22,17 +28,14 @@ jobs:
2228
with:
2329
name: dist
2430

25-
- uses: ./.github/workflows/version.yml
26-
id: version
27-
2831
- name: Create Release
2932
id: create_release
3033
uses: actions/create-release@latest
3134
env:
3235
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3336
with:
34-
tag_name: ${{ steps.version.outputs.VERSION }}
35-
release_name: ${{ steps.version.outputs.VERSION }}
37+
tag_name: ${{ needs.version.outputs.VERSION }}
38+
release_name: ${{ needs.version.outputs.VERSION }}
3639
draft: false
3740
prerelease: false
3841

.github/workflows/version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
outputs:
55
VERSION:
66
description: "The VERSION string"
7-
value: ${{ jobs.build.outputs.VERSION }}
7+
value: ${{ jobs.version.outputs.VERSION }}
88

99
jobs:
10-
get-version:
10+
version:
1111
runs-on: ubuntu-latest
1212

1313
outputs:

0 commit comments

Comments
 (0)