Skip to content

Commit

Permalink
X
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Jul 15, 2023
1 parent 1782053 commit 50e2448
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,15 @@ jobs:
- run: (Get-Content source.extension.vsixmanifest) -replace 'Version="1.0.0"', 'Version="${{ needs.common.outputs.version3 }}"' | Set-Content source.extension.vsixmanifest
- run: dotnet restore
- uses: microsoft/[email protected]
- run: msbuild /p:Version=${{ needs.common.outputs.version }}
- run: msbuild /p:Version=${{ needs.common.outputs.version }},DeployExtension=false
- uses: actions/upload-artifact@v3
with:
name: vs_extension
path: src/VisualStudio/bin/Release/net472/*.vsix
- uses: actions/upload-artifact@v3
with:
name: vs_extension
path: src/VisualStudio/manifest.json

build_vs_code_extension:
if: github.ref_type != 'tag' || startsWith(github.ref_name, 'v')
Expand Down Expand Up @@ -175,7 +179,7 @@ jobs:
with:
name: vs_code_extension
path: src/VisualStudioCode/package/*.vsix
- run: rm *.vsix
- run: rm package/*.vsix
- run: sed -i s/ms-dotnettools.csharp/muhammad-sammy.csharp/ package/package.json
- run: vsce package
working-directory: src/VisualStudioCode/package
Expand Down Expand Up @@ -240,8 +244,6 @@ jobs:
with:
name: nuget
path: nuget
- run: ls -R
working-directory: nuget
# - run: dotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s "https://api.nuget.org/v3/index.json"
# working-directory: nuget

Expand All @@ -254,12 +256,8 @@ jobs:
with:
name: vs_code_extension
path: vs_code_extension
- run: ls -R
working-directory: vs_code_extension
- run: npm install -g @vscode/vsce
- run: vsce
- run: echo Releasing VS Code extension ...
# - run: vsce publish -p ${{ secrets.VSCODE_PERSONAL_ACCESS_TOKEN }}
# - run: vsce publish -p ${{ secrets.VS_CODE_TOKEN }}
# working-directory: vs_code_extension

release_ovsx_extension:
Expand All @@ -271,10 +269,21 @@ jobs:
with:
name: ovsx_extension
path: ovsx_extension
- run: ls -R
working-directory: ovsx_extension
- run: npm install -g ovsx
- run: ovsx
- run: echo Releasing VS Code extension ...
# - run: ovsx publish -p ${{ secrets.OVSX_PERSONAL_ACCESS_TOKEN }}
# - run: ovsx publish -p ${{ secrets.OVSX_TOKEN }}
# working-directory: ovsx_extension

release_vs_extension:
needs: build_vs_extension
runs-on: windows-latest
# if: github.ref_type == 'tag'
steps:
- uses: actions/download-artifact@v3
with:
name: vs_extension
path: vs_extension
# - run: |
# $visualStudioPath = vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VSSDK -property installationPath
# $vsixPublisher = Join-Path "$visualStudioPath" "VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe"
# & "$vsixPublisher" publish -payload Roslynator.VisualStudio.vsix -publishManifest manifest.json -personalAccessToken ${{ secrets.VISUAL_STUDIO_TOKEN }}
# working-directory: vs_extension
13 changes: 13 additions & 0 deletions src/VisualStudio/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "http://json.schemastore.org/vsix-publish",
"categories": [ "coding", "other" ],
"identity": {
"internalName": "Roslynator2022"
},
"overview": "Overview.md",
"priceCategory": "free",
"publisher": "josefpihrt",
"private": false,
"qna": true,
"repo": "https://github.com/JosefPihrt/Roslynator"
}

0 comments on commit 50e2448

Please sign in to comment.