Skip to content

Commit

Permalink
ci: fix tag version in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Sep 5, 2021
1 parent ba96a0f commit 1ce5c84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Get release version
run: |
echo "TAG_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "version is: ${{ env.TAG_VERSION }}"
- name: Set up rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -58,8 +62,8 @@ jobs:
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
tag_name: ${{ env.TAG_VERSION }}
name: Release ${{ env.TAG_VERSION }}
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 1ce5c84

Please sign in to comment.