Skip to content

Commit 8de8946

Browse files
committed
Github Actions
1 parent 3fd08d4 commit 8de8946

1 file changed

Lines changed: 4 additions & 27 deletions

File tree

‎.github/workflows/build-vsix.yml‎

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ on:
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

1210
permissions:
1311
contents: write
@@ -26,16 +24,7 @@ jobs:
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 }}
@@ -44,16 +33,4 @@ jobs:
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 }}

0 commit comments

Comments
 (0)