Skip to content

Commit

Permalink
fixup! chore(action): update action file
Browse files Browse the repository at this point in the history
  • Loading branch information
someoneonsmile committed Aug 13, 2023
1 parent 013b4ac commit af53bd0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
create-tag:
name: create-tag
runs-on: ubuntu-latest
outputs:
tag_name: ${{ env.tag_name }}
steps:
- if: github.event_name == 'workflow_dispatch'
run: echo "tag_name=${{ inputs.tag_name }}" >> $GITHUB_ENV
Expand Down Expand Up @@ -67,7 +69,7 @@ jobs:
console.error(e)
}
update-release:
create-release:
name: create-release
needs: [create-tag]
runs-on: ${{ matrix.build.os }}
Expand Down Expand Up @@ -114,6 +116,7 @@ jobs:
# target: i686-pc-windows-msvc
# },
]
tag_name: ${{ needs.create-tag.outputs.tag_name }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -170,10 +173,10 @@ jobs:
- name: create nightly release
uses: softprops/action-gh-release@v1
if: env.tag_name == 'nightly'
if: matrix.tag_name == 'nightly'
with:
generate_release_notes: true
tag_name: "${{ env.tag_name }}"
tag_name: "${{ matrix.tag_name }}"
# target_commitish: "${{ github.sha }}"
prerelease: true
draft: false
Expand All @@ -184,10 +187,10 @@ jobs:
- name: create stable release
uses: softprops/action-gh-release@v1
if: env.tag_name != 'nightly'
if: matrix.tag_name != 'nightly'
with:
generate_release_notes: true
tag_name: ${{ env.tag_name }}
tag_name: "${{ matrix.tag_name }}"
prerelease: false
draft: false
fail_on_unmatched_files: false
Expand Down

0 comments on commit af53bd0

Please sign in to comment.