Skip to content

Commit e8ee4be

Browse files
committed
GitHub Actions
1 parent 5c8a1a6 commit e8ee4be

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Build and Release VSIX
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Release tag'
8+
required: false
49
release:
510
types: [ published ]
611

@@ -21,7 +26,29 @@ jobs:
2126

2227
- run: npx --yes @vscode/vsce package
2328

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
39+
uses: softprops/action-gh-release@v1
40+
with:
41+
tag_name: ${{ inputs.tag }}
42+
name: CircuitPython Uploader ${{ inputs.tag }}
43+
files: '*.vsix'
44+
draft: false
45+
prerelease: false
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
49+
2450
- name: Upload VSIX to Release
51+
if: github.event_name == 'release'
2552
uses: actions/upload-release-asset@v1
2653
env:
2754
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)