forked from mojtabakaviani/sqltools
-
Notifications
You must be signed in to change notification settings - Fork 1
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
2cffc9d
commit 3e0abed
Showing
3 changed files
with
133 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build extension (Release) | ||
|
||
on: | ||
push: | ||
tags: | ||
- v1.** | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Add msbuild to PATH | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Add nuget to PATH | ||
uses: nuget/setup-nuget@v2 | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1.1.3 | ||
|
||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | ||
|
||
- name: Update version numbers | ||
run: | | ||
(Get-Content -Path SqlTools\source.extension.vsixmanifest) | | ||
ForEach-Object {$_ -Replace '2.2.7', '${{ steps.get_version.outputs.VERSION }}'} | | ||
Set-Content -Path SqlTools\source.extension.vsixmanifest | ||
(Get-Content -Path SqlTools\Properties\AssemblyInfo.cs) | | ||
ForEach-Object {$_ -Replace '2.2.7', '${{ steps.get_version.outputs.VERSION }}'} | | ||
Set-Content -Path SqlTools\Properties\AssemblyInfo.cs | ||
- name: Restore | ||
run: nuget restore | ||
|
||
- name: Build | ||
run: msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: SqlTools.vsix | ||
path: SqlTools\bin\Release\SqlTools.vsix | ||
|
||
- name: Convert resource URLs to absolute. | ||
run: | | ||
(Get-Content -Path SqlTools\README.md) | | ||
ForEach-Object {$_ -Replace 'SqlTools/Resources', 'https://github.com/MaverickMartyn/sqltools/raw/main/SqlTools/Resources'} | | ||
Set-Content -Path SqlTools\README.md | ||
- name: Publish extension to Marketplace | ||
uses: cezarypiatek/VsixPublisherAction@1.1 | ||
with: | ||
extension-file: SqlTools\bin\Release\SqlTools.vsix | ||
publish-manifest-file: src\MappingGenerator.Vsix\publishManifest.json | ||
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }} |
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,47 @@ | ||
name: Build extension (Test) | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Add msbuild to PATH | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Add nuget to PATH | ||
uses: nuget/setup-nuget@v2 | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1.1.3 | ||
|
||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | ||
|
||
- name: Update version numbers | ||
run: | | ||
(Get-Content -Path SqlTools\source.extension.vsixmanifest) | | ||
ForEach-Object {$_ -Replace '2.2.7', '${{ steps.get_version.outputs.VERSION }}'} | | ||
Set-Content -Path SqlTools\source.extension.vsixmanifest | ||
(Get-Content -Path SqlTools\Properties\AssemblyInfo.cs) | | ||
ForEach-Object {$_ -Replace '2.2.7', '${{ steps.get_version.outputs.VERSION }}'} | | ||
Set-Content -Path SqlTools\Properties\AssemblyInfo.cs | ||
- name: Restore | ||
run: nuget restore | ||
|
||
- name: Build | ||
run: msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: SqlTools.vsix | ||
path: SqlTools\bin\Release\SqlTools.vsix |
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,27 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/vsix-publish", | ||
"categories": [ | ||
"coding", | ||
"programming languages" | ||
], | ||
"identity": { | ||
"internalName": "sqltools-improved", | ||
"tags": [ | ||
"string literals", | ||
"syntax highlighting", | ||
"c#", | ||
"csharp", | ||
"highlighting", | ||
"literals", | ||
"SQL", | ||
"string", | ||
"syntax" | ||
] | ||
}, | ||
"overview": "README.md", | ||
"priceCategory": "free", | ||
"publisher": "MaverickMartyn", | ||
"private": false, | ||
"qna": true, | ||
"repo": "https://github.com/MaverickMartyn/sqltools" | ||
} |