-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (31 loc) · 987 Bytes
/
publish.yml
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
name: Publish
on:
push:
tags:
- v*
jobs:
release:
if: github.repository == 'sourcegraph/cody-vs'
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Install Cake.Tool
run: dotnet tool install --global Cake.Tool
- name: Restore NuGet packages
run: nuget restore src\Cody.Core\Cody.Core.csproj -PackagesDirectory src\packages
- name: Run Cake script
env:
CODY_VS_MARKETPLACE_RELEASE_TOKEN: ${{ secrets.CODY_VS_MARKETPLACE_RELEASE_TOKEN }}
run: |
cd src
dotnet tool restore
corepack enable
corepack install --global [email protected]
- name: Publish to marketplace
env:
CODY_VS_MARKETPLACE_RELEASE_TOKEN: ${{ secrets.CODY_VS_MARKETPLACE_RELEASE_TOKEN }}
run: dotnet cake --target Publish