Skip to content

Commit 2cd167d

Browse files
committed
[FIX] a few logic errors in the publishing flow
1 parent a6d76f1 commit 2cd167d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish_vsix.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
tags:
77
- "v*.*.*" # publish when you tag a release
88

9+
defaults:
10+
run:
11+
working-directory: "vscode/asperheader"
12+
913
jobs:
1014
publish:
1115
runs-on: ubuntu-latest
@@ -68,6 +72,12 @@ jobs:
6872
- name: Package extension
6973
run: npx vsce package
7074

75+
- name: Upload artifact
76+
uses: actions/upload-artifact@v4
77+
with:
78+
name: vsix-${{ matrix.vscode_version }}
79+
path: "*.vsix"
80+
7181
- name: Publish to Marketplace
7282
run: npx vsce publish -p ${{ secrets.VSCE_TOKEN }}
7383
env:
@@ -77,3 +87,18 @@ jobs:
7787
run: npx ovsx publish -p ${{ secrets.OVSX_TOKEN }}
7888
env:
7989
OVSX_PAT: ${{ secrets.OVSX_TOKEN }}
90+
91+
release:
92+
needs: publish
93+
runs-on: ubuntu-latest
94+
steps:
95+
- uses: actions/download-artifact@v4
96+
with:
97+
path: dist
98+
99+
- name: Create GitHub Release
100+
uses: softprops/action-gh-release@v1
101+
with:
102+
files: dist/**/*.vsix
103+
env:
104+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)