Skip to content

Commit

Permalink
build: fix release assets action
Browse files Browse the repository at this point in the history
  • Loading branch information
EnixCoda committed Jul 17, 2022
1 parent ae96135 commit 87f95c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ jobs:
build:
uses: ./.github/workflows/build.yml

version:
uses: ./.github/workflows/version.yml

release:
needs: build
needs:
- build
- version

runs-on: ubuntu-latest

steps:
Expand All @@ -22,17 +28,14 @@ jobs:
with:
name: dist

- uses: ./.github/workflows/version.yml
id: version

- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.VERSION }}
release_name: ${{ steps.version.outputs.VERSION }}
tag_name: ${{ needs.version.outputs.VERSION }}
release_name: ${{ needs.version.outputs.VERSION }}
draft: false
prerelease: false

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
outputs:
VERSION:
description: "The VERSION string"
value: ${{ jobs.build.outputs.VERSION }}
value: ${{ jobs.version.outputs.VERSION }}

jobs:
get-version:
version:
runs-on: ubuntu-latest

outputs:
Expand Down

0 comments on commit 87f95c8

Please sign in to comment.