Skip to content

Commit eb70a40

Browse files
authored
adding release pipeline (#46)
1 parent 5e07ce8 commit eb70a40

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

.github/workflows/main_build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: main_build
33
on:
44
pull_request:
55
branches: [ main ]
6+
paths:
7+
- 'source/**'
68

79
env:
810
SOLUTION_PATH: source/Diol/Diol.sln
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: main_vsix_release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
SOLUTION_PATH: source/Diol/Diol.sln
8+
VSIX_PROJECT_PATH: source/Diol/src/applications/DiolVSIX/DiolVSIX.csproj
9+
VSIX_OUTPUT_PATH: distr/diol
10+
11+
jobs:
12+
build:
13+
14+
runs-on: windows-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Setup MSBuild
20+
uses: microsoft/setup-msbuild@v1
21+
22+
- name: Restore NuGet packages
23+
run: msbuild /t:restore ${{ env.SOLUTION_PATH }}
24+
25+
- name: Build
26+
run: msbuild /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=${{ github.workspace }}/${{ env.VSIX_OUTPUT_PATH }} ${{ env.VSIX_PROJECT_PATH }}
27+
28+
- name: Publish extension to Marketplace
29+
uses: cezarypiatek/[email protected]
30+
with:
31+
extension-file: ${{ github.workspace }}/${{ env.VSIX_OUTPUT_PATH }}/DiolVSIX.vsix
32+
publish-manifest-file: ${{ github.workspace }}/${{ env.VSIX_OUTPUT_PATH }}/publishManifest.json
33+
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}

source/Diol/src/applications/DiolVSIX/DiolVSIX.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@
8686
<Compile Include="Services\VsProcessProvider.cs" />
8787
</ItemGroup>
8888
<ItemGroup>
89+
<None Include="..\..\..\..\..\README.md">
90+
<Link>README.md</Link>
91+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
92+
</None>
93+
<None Include="publishManifest.json">
94+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
95+
</None>
8996
<None Include="source.extension.vsixmanifest">
9097
<SubType>Designer</SubType>
9198
</None>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vsix-publish",
3+
"categories": ["Coding", "Other", "Testing"],
4+
"identity": {
5+
"displayName": "Diol",
6+
"description": "Dotnet Input-Output Logger (Diol) is a free and open-source tool you can easily see and explore logs during debugging your dotnet application in real time.",
7+
"icon": "Resources/logo.png",
8+
"installTargets": [{
9+
"sku": "Microsoft.VisualStudio.Community",
10+
"version": "[17.0, 18.0)"
11+
}],
12+
"internalName": "Diol",
13+
"language": "en-US",
14+
"tags": ["Visual Studio", "logger", "aspnetcore", "entityframework", "http"],
15+
"version": "1.7",
16+
"vsixId": "DiolVSIX.66bbb016-3110-40f6-a936-35f914a663e3"
17+
},
18+
"overview": "Readme.md",
19+
"priceCategory": "free",
20+
"publisher": "Diol devs",
21+
"private": false,
22+
"qna": true,
23+
"repo": "https://github.com/cezarypiatek/MappingGenerator"
24+
}

0 commit comments

Comments
 (0)