Skip to content

Commit

Permalink
update publish
Browse files Browse the repository at this point in the history
  • Loading branch information
reymondzzzz committed Nov 28, 2023
1 parent d5da8da commit 926b1e5
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 13 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
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
Expand Down
1 change: 1 addition & 0 deletions MultilineGreyText/RefactExtension.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
</None>
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
<Generator>VsixManifestGenerator</Generator>
</None>
</ItemGroup>
<ItemGroup>
Expand Down
Empty file added MultilineGreyText/overview.md
Empty file.
12 changes: 7 additions & 5 deletions MultilineGreyText/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="codify.565c0987-99df-4b97-a332-9c26d2e5fd00" Version="0.1" Language="en-US" Publisher="smallcloud" />
<Identity Id="codify.REPLACE_ID" Version="0.0.1" Language="en-US" Publisher="smallcloud" />
<DisplayName>Refact</DisplayName>
<Description>Refact.ai: The AI Assistant for Code Writing and Refactoring</Description>
<MoreInfo>https://github.com/smallcloudai/refact-vs-classic</MoreInfo>
<License>LICENSE.txt</License>
<Icon>icon.png</Icon>
</Metadata>
<Installation>
<Installation InstalledByMsi="false" AllUsers="false" SystemComponent="false" Scope="ProductExtension">
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
Expand All @@ -20,9 +23,8 @@
</InstallationTarget>
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
<Dependency Id="Microsoft.VisualStudio.MPF.15.0" DisplayName="Visual Studio MPF 15.0" d:Source="Installed" Version="[15.0]" />
<Dependency Id="Microsoft.VisualStudio.MPF.16.0" DisplayName="Visual Studio MPF 16.0" d:Source="Installed" Version="[16.0,17.0)" />
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.8,)" />
<Dependency Id="Microsoft.VisualStudio.MPF.16.0" DisplayName="Visual Studio MPF 16.0" d:Source="Installed" Version="[17.0,18.0)" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
Expand Down
13 changes: 13 additions & 0 deletions MultilineGreyText/vsixManifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion RefactExtension.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 926b1e5

Please sign in to comment.