Skip to content

Commit c939764

Browse files
committed
Prepare to release v1.0.1104.33
[skip ci]
1 parent 86acb0b commit c939764

5 files changed

Lines changed: 16 additions & 20 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ on:
99
branches: [ "main" ]
1010
workflow_dispatch:
1111
inputs:
12-
release:
12+
publishVsix:
1313
description: 'Publish extension to the Visual Studio Marketplace?'
1414
required: true
1515
default: 'false'
16+
publishNupkg:
17+
description: 'Publish NuGet package to nuget.org?'
18+
required: true
19+
default: 'false'
1620

1721
jobs:
1822

@@ -50,7 +54,7 @@ jobs:
5054
echo "SEM_VERSION=$majorVersion.$minorVersion.$buildVersion" >> $env:GITHUB_ENV
5155
5256
- name: Set version number for pre-release
53-
if: ${{ github.event.inputs.release == '' || github.event.inputs.release == 'false' }}
57+
if: ${{ github.event.inputs.publishNupkg == '' || github.event.inputs.publishNupkg == 'false' }}
5458
run: |
5559
echo "SEM_VERSION=${{ env.SEM_VERSION }}-build-${{ github.RUN_NUMBER }}" >> $env:GITHUB_ENV
5660
@@ -149,7 +153,7 @@ jobs:
149153
if-no-files-found: error
150154

151155
- name: Publish GitHub Release
152-
if: ${{ matrix.Configuration == 'Release' && github.event.inputs.release == 'true' }}
156+
if: ${{ matrix.Configuration == 'Release' && (github.event.inputs.publishNupkg == 'true' || github.event.inputs.publishVsix == 'true') }}
153157
uses: softprops/action-gh-release@v2.0.8
154158
with:
155159
name: v${{ env.VERSION }}
@@ -163,11 +167,11 @@ jobs:
163167
./src/PackageReferenceVersionToAttributeTool/bin/${{matrix.Configuration}}/PackageReferenceVersionToAttribute.Tool.${{ env.SEM_VERSION }}.nupkg
164168
165169
- name: Publish NuGet Package
166-
if: ${{ matrix.Configuration == 'Release' && github.event_name != 'pull_request' }}
170+
if: ${{ matrix.Configuration == 'Release' && github.event_name != 'pull_request' && github.event.inputs.publishNupkg == 'true' }}
167171
run: dotnet nuget push .\src\PackageReferenceVersionToAttributeTool\bin\${{matrix.Configuration}}\PackageReferenceVersionToAttribute.Tool.${{ env.SEM_VERSION }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
168172

169173
- name: Publish to Open VSIX
170-
if: ${{ matrix.Configuration == 'Release' && github.event.inputs.release == 'true' }}
174+
if: ${{ matrix.Configuration == 'Release' && github.event_name != 'pull_request' && github.event.inputs.publishNupkg == 'true' }}
171175
run: |
172176
[Reflection.Assembly]::LoadWithPartialName("System.Web") | Out-Null
173177
$vsixFile = ".\src\PackageReferenceVersionToAttributeExtension\bin\${{matrix.Configuration}}\PackageReferenceVersionToAttributeExtension.vsix"
@@ -185,7 +189,7 @@ jobs:
185189
}
186190
187191
- name: Publish extension to the Visual Studio Marketplace
188-
if: ${{ matrix.Configuration == 'Release' && github.event.inputs.release == 'true' }}
192+
if: ${{ matrix.Configuration == 'Release' && github.event.inputs.publishVsix == 'true' }}
189193
uses: cezarypiatek/VsixPublisherAction@1.1
190194
with:
191195
extension-file: .\src\PackageReferenceVersionToAttributeExtension\bin\${{matrix.Configuration}}\PackageReferenceVersionToAttributeExtension.vsix

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## TBD
3+
## v1.0.1104.33 (November 4<sup>th</sup>, 2024)
44

55
- Added input validation for the mutually exclusive --backup and --dry-run command line options
66
- Removed empty lines within `<PackageReference>` elements

src/PackageReferenceVersionToAttributeExtension/publishManifest.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@
66
"other"
77
],
88
"identity": {
9-
"internalName": "PackageReferenceVersionToAttributeExtension",
10-
"displayName": "PackageReference Version element to attribute",
11-
"vsixId": "PackageReferenceVersionToAttributeExtension.81a84c1c-37f0-4fab-96a1-ca03c4de45ca",
12-
"description": "Converts PackageReference Version child elements to attributes.",
13-
"tags": [
14-
"PackageReference",
15-
"NuGet",
16-
"Version"
17-
]
9+
"internalName": "PackageReferenceVersionToAttributeExtension"
1810
},
1911
"assetFiles": [
2012
{

src/PackageReferenceVersionToAttributeExtension/source.extension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ internal sealed partial class Vsix
99
{
1010
public const string Id = "PackageReferenceVersionToAttributeExtension.81a84c1c-37f0-4fab-96a1-ca03c4de45ca";
1111
public const string Name = "PackageReference Version element to attribute";
12-
public const string Description = @"Converts PackageReference Version elements to attributes.";
12+
public const string Description = @"Converts PackageReference Version child elements to attributes.";
1313
public const string Language = "en-US";
1414
public const string Version = "1.0";
1515
public const string Author = "Rami Abughazaleh";
16-
public const string Tags = "PackageReference NuGet Version";
16+
public const string Tags = "PackageReference;NuGet;Version";
1717
}
1818
}

src/PackageReferenceVersionToAttributeExtension/source.extension.vsixmanifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<Metadata>
44
<Identity Id="PackageReferenceVersionToAttributeExtension.81a84c1c-37f0-4fab-96a1-ca03c4de45ca" Version="1.0" Language="en-US" Publisher="Rami Abughazaleh" />
55
<DisplayName>PackageReference Version element to attribute</DisplayName>
6-
<Description xml:space="preserve">Converts PackageReference Version elements to attributes.</Description>
6+
<Description xml:space="preserve">Converts PackageReference Version child elements to attributes.</Description>
77
<MoreInfo>https://github.com/icnocop/MigratePackagesConfigToPackageReferencesExtension</MoreInfo>
88
<License>LICENSE</License>
99
<Icon>Resources\Icon.png</Icon>
1010
<PreviewImage>Resources\Preview.png</PreviewImage>
11-
<Tags>PackageReference NuGet Version</Tags>
11+
<Tags>PackageReference;NuGet;Version</Tags>
1212
</Metadata>
1313
<Installation>
1414
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">

0 commit comments

Comments
 (0)