File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,20 @@ jobs:
46
46
git push origin main
47
47
continue-on-error : true
48
48
49
- - name : Package VSCode Ext
50
- run : vsce package
49
+ - id : package
50
+ name : Package VSCode Ext
51
+ run : |
52
+ vsce package
53
+ VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
54
+ echo "ext=syntax-mcfunction-$VERSION.vsix" >> "$GITHUB_OUTPUT"
51
55
52
56
- name : Archive production artifacts
53
57
uses : actions/upload-artifact@v3
54
58
if : " !startsWith(github.ref, 'refs/tags/')"
55
59
with :
56
60
name : dist-without-markdown
57
61
path : |
58
- "*.vsix "
62
+ "${{ steps.package.outputs.ext }} "
59
63
"mcfunction.tmLanguage.yaml"
60
64
"mcfunction.tmLanguage.json"
61
65
70
74
71
75
- name : Release to openvsix
72
76
if : startsWith(github.ref, 'refs/tags/')
73
- run : |
74
- VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
75
- npx ovsx publish syntax-mcfunction-$VERSION.vsix -p ${{ secrets.OVSX }}
77
+ run : npx ovsx publish ${{ steps.package.outputs.ext }} -p ${{ secrets.OVSX }}
You can’t perform that action at this time.
0 commit comments