Skip to content

Commit

Permalink
🚀 deployment: updated file CI.CD #15
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Sep 23, 2023
1 parent 3832816 commit 2645e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ jobs:

create-release:
runs-on: ubuntu-latest
permissions:
contents: write
discussions: write
if: startsWith(github.ref, 'refs/tags/v') # Only run this job when a valid tag is pushed
steps:
- name: Check if tag exists
id: check_tag
run: |
if [ -n "$GITHUB_REF" ]; then
TAG=${GITHUB_REF#refs/tags/}
# echo "::set-output name=tag::$TAG"
echo "TAG=${TAG}" >> $GITHUB_ENV
else
# echo "::set-output name=tag::"
echo "TAG=" >> $GITHUB_ENV
fi
shell: bash
Expand All @@ -50,7 +51,6 @@ jobs:
id: create_release
uses: softprops/action-gh-release@v1
with:
# tag_name: ${{ steps.check_tag.outputs.tag }}
tag_name: ${{ env.TAG }}
body: |
:gem: released new version ${{ env.TAG }}
Expand Down

0 comments on commit 2645e49

Please sign in to comment.