-
Notifications
You must be signed in to change notification settings - Fork 36
42 lines (37 loc) · 1.79 KB
/
vscode_client.yml
File metadata and controls
42 lines (37 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build VSCode extension
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build-vscode-extension:
name: "Build VSCode extension vsix"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- name: Build
run: dotnet build src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj --configuration Release --no-restore
- name: dotnet publish win-x64
run: dotnet publish src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj --configuration Release --self-contained false -r win-x64
- name: dotnet publish linux-x64
run: dotnet publish src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj --configuration Release --self-contained false -r linux-x64
- name: dotnet publish osx-arm64
run: dotnet publish src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj --configuration Release --self-contained false -r osx-arm64
- name: dotnet publish vsix
run: dotnet publish src/Clients/PullRequestQuantifier.VsCode.Client/PullRequestQuantifier.VsCode.Client.csproj --configuration Release --self-contained false -p:PackageVsix=true
- name: Upload release artifacts
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: vsix
path: src/Clients/PullRequestQuantifier.VsCode.Client/**/*.vsix