Skip to content

Commit de19122

Browse files
Try fixing upload asset to Github
1 parent 818f87a commit de19122

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ jobs:
3131
run: npm run package -- --out redcode-${{ steps.release.outputs.tag_name }}.vsix
3232

3333
- name: Upload extension to Github
34-
uses: actions/upload-release-asset@v1
34+
uses: softprops/action-gh-release@v1
35+
if: startsWith(github.ref, 'refs/tags/')
3536
with:
36-
upload_url: ${{ steps.release.outputs.upload_url }}
37-
asset_path: redcode-${{ steps.release.outputs.tag_name }}.vsix
38-
asset_name: redcode-${{ steps.release.outputs.tag_name }}.vsix
39-
asset_content_type: application/vsix
37+
files: redcode-${{ steps.release.outputs.tag_name }}.vsix
4038

4139
- name: Publish extension to VSCode marketplace
4240
run: npm run publish

0 commit comments

Comments
 (0)