Skip to content

Commit

Permalink
Prepare to release v1.0.1104.33
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
icnocop committed Nov 4, 2024
1 parent 86acb0b commit c939764
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 20 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ on:
branches: [ "main" ]
workflow_dispatch:
inputs:
release:
publishVsix:
description: 'Publish extension to the Visual Studio Marketplace?'
required: true
default: 'false'
publishNupkg:
description: 'Publish NuGet package to nuget.org?'
required: true
default: 'false'

jobs:

Expand Down Expand Up @@ -50,7 +54,7 @@ jobs:
echo "SEM_VERSION=$majorVersion.$minorVersion.$buildVersion" >> $env:GITHUB_ENV
- name: Set version number for pre-release
if: ${{ github.event.inputs.release == '' || github.event.inputs.release == 'false' }}
if: ${{ github.event.inputs.publishNupkg == '' || github.event.inputs.publishNupkg == 'false' }}
run: |
echo "SEM_VERSION=${{ env.SEM_VERSION }}-build-${{ github.RUN_NUMBER }}" >> $env:GITHUB_ENV
Expand Down Expand Up @@ -149,7 +153,7 @@ jobs:
if-no-files-found: error

- name: Publish GitHub Release
if: ${{ matrix.Configuration == 'Release' && github.event.inputs.release == 'true' }}
if: ${{ matrix.Configuration == 'Release' && (github.event.inputs.publishNupkg == 'true' || github.event.inputs.publishVsix == 'true') }}
uses: softprops/action-gh-release@v2.0.8
with:
name: v${{ env.VERSION }}
Expand All @@ -163,11 +167,11 @@ jobs:
./src/PackageReferenceVersionToAttributeTool/bin/${{matrix.Configuration}}/PackageReferenceVersionToAttribute.Tool.${{ env.SEM_VERSION }}.nupkg
- name: Publish NuGet Package
if: ${{ matrix.Configuration == 'Release' && github.event_name != 'pull_request' }}
if: ${{ matrix.Configuration == 'Release' && github.event_name != 'pull_request' && github.event.inputs.publishNupkg == 'true' }}
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

- name: Publish to Open VSIX
if: ${{ matrix.Configuration == 'Release' && github.event.inputs.release == 'true' }}
if: ${{ matrix.Configuration == 'Release' && github.event_name != 'pull_request' && github.event.inputs.publishNupkg == 'true' }}
run: |
[Reflection.Assembly]::LoadWithPartialName("System.Web") | Out-Null
$vsixFile = ".\src\PackageReferenceVersionToAttributeExtension\bin\${{matrix.Configuration}}\PackageReferenceVersionToAttributeExtension.vsix"
Expand All @@ -185,7 +189,7 @@ jobs:
}
- name: Publish extension to the Visual Studio Marketplace
if: ${{ matrix.Configuration == 'Release' && github.event.inputs.release == 'true' }}
if: ${{ matrix.Configuration == 'Release' && github.event.inputs.publishVsix == 'true' }}
uses: cezarypiatek/VsixPublisherAction@1.1
with:
extension-file: .\src\PackageReferenceVersionToAttributeExtension\bin\${{matrix.Configuration}}\PackageReferenceVersionToAttributeExtension.vsix
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

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

- Added input validation for the mutually exclusive --backup and --dry-run command line options
- Removed empty lines within `<PackageReference>` elements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@
"other"
],
"identity": {
"internalName": "PackageReferenceVersionToAttributeExtension",
"displayName": "PackageReference Version element to attribute",
"vsixId": "PackageReferenceVersionToAttributeExtension.81a84c1c-37f0-4fab-96a1-ca03c4de45ca",
"description": "Converts PackageReference Version child elements to attributes.",
"tags": [
"PackageReference",
"NuGet",
"Version"
]
"internalName": "PackageReferenceVersionToAttributeExtension"
},
"assetFiles": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ internal sealed partial class Vsix
{
public const string Id = "PackageReferenceVersionToAttributeExtension.81a84c1c-37f0-4fab-96a1-ca03c4de45ca";
public const string Name = "PackageReference Version element to attribute";
public const string Description = @"Converts PackageReference Version elements to attributes.";
public const string Description = @"Converts PackageReference Version child elements to attributes.";
public const string Language = "en-US";
public const string Version = "1.0";
public const string Author = "Rami Abughazaleh";
public const string Tags = "PackageReference NuGet Version";
public const string Tags = "PackageReference;NuGet;Version";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<Metadata>
<Identity Id="PackageReferenceVersionToAttributeExtension.81a84c1c-37f0-4fab-96a1-ca03c4de45ca" Version="1.0" Language="en-US" Publisher="Rami Abughazaleh" />
<DisplayName>PackageReference Version element to attribute</DisplayName>
<Description xml:space="preserve">Converts PackageReference Version elements to attributes.</Description>
<Description xml:space="preserve">Converts PackageReference Version child elements to attributes.</Description>
<MoreInfo>https://github.com/icnocop/MigratePackagesConfigToPackageReferencesExtension</MoreInfo>
<License>LICENSE</License>
<Icon>Resources\Icon.png</Icon>
<PreviewImage>Resources\Preview.png</PreviewImage>
<Tags>PackageReference NuGet Version</Tags>
<Tags>PackageReference;NuGet;Version</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">
Expand Down

0 comments on commit c939764

Please sign in to comment.