mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
build: fix release assets action
This commit is contained in:
parent
ae96135c33
commit
87f95c8270
2 changed files with 11 additions and 8 deletions
15
.github/workflows/release-assets.yml
vendored
15
.github/workflows/release-assets.yml
vendored
|
|
@ -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:
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
4
.github/workflows/version.yml
vendored
4
.github/workflows/version.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue