Skip to content

Commit 11f6347

Browse files
Auto upload file to github releases
1 parent 8273a5f commit 11f6347

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write
9+
710
jobs:
811
publish:
912
runs-on: ubuntu-latest
@@ -18,7 +21,14 @@ jobs:
1821
run: |
1922
sudo corepack enable
2023
corepack yarn
21-
- name: Publish
24+
- name: Package
25+
run: yarn run pack
26+
- name: Upload to Github Releases
27+
uses: softprops/action-gh-release@v1
28+
if: startsWith(github.ref, 'refs/tags/')
29+
with:
30+
files: mp-oi-library.vsix
31+
- name: Publish to VS Code Marketplace
2232
run: yarn run publish
2333
env:
2434
VSCE_PAT: ${{ secrets.VSCE_PAT }}

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ library/test/
1313
library/test.exe
1414
library/test.d
1515
.github/
16+
**/*.gch

0 commit comments

Comments
 (0)