File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 inputs :
66 tag :
7- description : ' Release tag'
8- required : false
9- release :
10- types : [ published ]
7+ description : ' Release tag (např. v1.0.0)'
8+ required : true
119
1210permissions :
1311 contents : write
2624
2725 - run : npx --yes @vscode/vsce package
2826
29- - name : Upload VSIX as Artifact (Manual Run)
30- if : github.event_name == 'workflow_dispatch' && !inputs.tag
31- uses : actions/upload-artifact@v4
32- with :
33- name : circuitpython-uploader-vsix
34- path : ' *.vsix'
35-
36-
37- - name : Create Release with VSIX (Manual Run with Tag)
38- if : github.event_name == 'workflow_dispatch' && inputs.tag
27+ - name : Create Release with VSIX
3928 uses : softprops/action-gh-release@v1
4029 with :
4130 tag_name : ${{ inputs.tag }}
4433 draft : false
4534 prerelease : false
4635 env :
47- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48-
49-
50- - name : Upload VSIX to Release
51- if : github.event_name == 'release'
52- uses : actions/upload-release-asset@v1
53- env :
54- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55- with :
56- upload_url : ${{ github.event.upload_url }}
57- asset_path : ./circuitpython-uploader-${{ github.event.release.tag_name }}.vsix
58- asset_name : circuitpython-uploader-${{ github.event.release.tag_name }}.vsix
59- asset_content_type : application/zip
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments