Skip to content

Commit

Permalink
try fixing tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
sakkyoi committed Jul 3, 2024
1 parent 88219bf commit cffd0ed
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ jobs:
- run: ./dist/ncp-${{ matrix.name }} --help
- id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- uses: softprops/action-gh-release@v2
with:
files: dist/*
tag_name: ${{ steps.vars.outputs.sha_short }}
name: Release ${{ steps.vars.outputs.sha_short }}
token: ${{ secrets.GITHUB_TOKEN }}

- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create \
--target ${{ steps.vars.outputs.sha_short }} \
--title "Release ${{ steps.vars.outputs.sha_short }}" \
${{ steps.vars.outputs.sha_short }} \
dist/*

0 comments on commit cffd0ed

Please sign in to comment.