diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 709a2c4..baadac9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,10 +35,17 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: ${{ env.FETCH_DEPTH }} + + - name: Set UUID + id: generate-uuid + uses: filipstefansson/uuid-action@v1 + with: + name: ${{ gihub.sha }} - - name: Install VSCE + - name: Setup ID + shell: bash run: | - npm install -g @vscode/vsce + sed -i 's\REPLACE_ID\${{ steps.generate-uuid.outputs.uuid }}\g' MultilineGreyText/source.extension.vsixmanifest - name: Download artifact id: download-artifact @@ -69,11 +76,19 @@ jobs: - name: MSBuild ${{ env.refactSolution }} run: | msbuild ${{ env.refactSolution }} /p:Configuration=${{ env.config }} /p:TargetVsixContainer=${{ env.vsixContainer }} /p:DeployExtension=False /verbosity:minimal - - - name: Publish VSCE extension - shell: bash - run: | - vsce publish --pat ${{secrets.VSCE_PAT}} --packagePath ${{ env.vsixContainer }} + + - name: Publish release to marketplace + id: publish + uses: cezarypiatek/VsixPublisherAction@1.0 + with: + # (Required) Personal access token to perform action on the VS Marketplace + personal-access-code: ${{ secrets.VSCE_PAT }} + + # (Required) Path to the manifest used for the publish + publish-manifest-file: MultilineGreyText/vsixManifest.json + + # (Optional) Path to an extension package + extension-file: ${{ env.vsixContainer }} - name: Upload artifacts uses: actions/upload-artifact@v3 diff --git a/MultilineGreyText/RefactExtension.csproj b/MultilineGreyText/RefactExtension.csproj index d4e0bb0..d235c01 100644 --- a/MultilineGreyText/RefactExtension.csproj +++ b/MultilineGreyText/RefactExtension.csproj @@ -89,6 +89,7 @@ Designer + VsixManifestGenerator diff --git a/MultilineGreyText/overview.md b/MultilineGreyText/overview.md new file mode 100644 index 0000000..e69de29 diff --git a/MultilineGreyText/source.extension.vsixmanifest b/MultilineGreyText/source.extension.vsixmanifest index 64ff3c1..1886b56 100644 --- a/MultilineGreyText/source.extension.vsixmanifest +++ b/MultilineGreyText/source.extension.vsixmanifest @@ -1,11 +1,14 @@ - + Refact Refact.ai: The AI Assistant for Code Writing and Refactoring + https://github.com/smallcloudai/refact-vs-classic + LICENSE.txt + icon.png - + amd64 @@ -20,9 +23,8 @@ - - - + + diff --git a/MultilineGreyText/vsixManifest.json b/MultilineGreyText/vsixManifest.json new file mode 100644 index 0000000..5b81717 --- /dev/null +++ b/MultilineGreyText/vsixManifest.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json.schemastore.org/vsix-publish", + "categories": [ "coding" ], + "identity": { + "internalName": "refactclassic" + }, + "overview": "overview.md", + "priceCategory": "free", + "publisher": "smallcloud", + "private": false, + "qna": true, + "repo": "https://github.com/smallcloudai/refact-vs-classic" +} \ No newline at end of file diff --git a/RefactExtension.sln b/RefactExtension.sln index d957848..4a1f291 100644 --- a/RefactExtension.sln +++ b/RefactExtension.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.7.34031.279 -MinimumVisualStudioVersion = 10.0.40219.1 +MinimumVisualStudioVersion = 17.7.34031.279 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RefactExtension", "MultilineGreyText\RefactExtension.csproj", "{EBB916BC-0F79-4EAB-82D7-C6B17817424E}" EndProject Global