Skip to content

Commit

Permalink
fix(gh-actions): broken tag name when creating release
Browse files Browse the repository at this point in the history
  • Loading branch information
bandantonio committed Mar 5, 2024
1 parent 0dbb7c8 commit 72cff11
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ jobs:
run: npm run build

- name: 📦 Create release
uses: softprops/action-gh-release@v1
if: steps.build_plugin.outcome == 'success' && contains(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag='${GITHUB_REF#refs/tags/}'
gh release create '$tag' \
--title='$tag' \
--draft \
main.js manifest.json styles.css
with:
body: 'This release was generated automatically. Full details will be available soon'
draft: true
files: |
main.js
manifest.json
styles.css

0 comments on commit 72cff11

Please sign in to comment.