File tree Expand file tree Collapse file tree 1 file changed +67
-0
lines changed
Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ pull_request :
4+ branches :
5+ - main
6+ push :
7+ branches :
8+ - main
9+ release :
10+ types :
11+ - created
12+ jobs :
13+ build :
14+ name : Build
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 22
21+ - run : npm install
22+ - run : npx vsce package --out unison.vsix
23+ - uses : actions/upload-artifact@v4
24+ with :
25+ name : unison-${{ github.sha }}.vsix
26+ path : unison.vsix
27+ publish-gh :
28+ if : github.event_name == 'release'
29+ name : Publish to GitHub
30+ needs : build
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@v4
34+ - uses : actions/download-artifact@v4
35+ with :
36+ name : unison-${{ github.sha }}.vsix
37+ path : unison.vsix
38+ - env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ uses : svenstaro/upload-release-action@v2
41+ with :
42+ asset_name : unison-${{ github.event.release.tag_name }}.vsix
43+ file : unison.vsix
44+ publish-vsc :
45+ if : github.event_name == 'release'
46+ name : Publish to Visual Studio Code Marketplace
47+ needs : build
48+ runs-on : ubuntu-latest
49+ steps :
50+ - uses : actions/checkout@v4
51+ - uses : actions/download-artifact@v4
52+ with :
53+ name : unison-${{ github.sha }}.vsix
54+ path : unison.vsix
55+ - run : npx vsce publish --packagePath unison.vsix --pat "${{ secrets.AZURE_PAT }}"
56+ publish-ovsx :
57+ if : github.event_name == 'release'
58+ name : Publish to Open VSX
59+ needs : build
60+ runs-on : ubuntu-latest
61+ steps :
62+ - uses : actions/checkout@v4
63+ - uses : actions/download-artifact@v4
64+ with :
65+ name : unison-${{ github.sha }}.vsix
66+ path : unison.vsix
67+ - run : npx ovsx publish --packagePath unison.vsix --pat "${{ secrets.OVSX_PAT }}"
You can’t perform that action at this time.
0 commit comments