-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1782053
commit 50e2448
Showing
2 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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') | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
@@ -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: | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |