Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyachean authored Sep 28, 2024
1 parent 0c3bde1 commit 5b2c9c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
id: version
run: |
VERSION=$(jq -r .version package.json)
echo "::set-output name=version::$VERSION"
echo "version=$VERSION" >> $GITHUB_ENV
if git tag | grep -q "$VERSION"; then
echo "Version $VERSION already exists."
exit 0
Expand All @@ -36,15 +36,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.version.outputs.version }}
release_name: v${{ steps.version.outputs.version }}
tag_name: v${{ env.version }}
release_name: v${{ env.version }}
draft: false
prerelease: true

- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.version.outputs.version }}
tag_name: v${{ env.version }}
files: |
.output/**
env:
Expand Down

0 comments on commit 5b2c9c9

Please sign in to comment.