Skip to content

Commit

Permalink
💚 fix: build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
camargo2019 committed Sep 10, 2024
1 parent 3df7cff commit 16143e2
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,21 @@ jobs:
- name: Get the tag
run: echo "GITHUB_REF=${{ github.ref }}"

- name: Extract the tag name
- name: Extract the tag name - Windows
if: matrix.os == 'windows-latest'
id: extract_tag-win
run: |
$TAG_NAME = ${env:GITHUB_REF} -replace 'refs/tags/', ''
echo "TAG_NAME=$TAG_NAME" | Out-File -FilePath $env:GITHUB_ENV -Append
shell: bash

- name: Extract the tag name - Others OS
if: matrix.os != 'windows-latest'
id: extract_tag
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "TAG_NAME=${TAG_NAME}"
echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
shell: bash

- name: Create GitHub Release
id: create_release
Expand Down

0 comments on commit 16143e2

Please sign in to comment.