From 48b0965b0548cd9451b30520b4a88eec6eccefd0 Mon Sep 17 00:00:00 2001 From: Gabriel Monteiro Nepomuceno Date: Thu, 30 Mar 2023 14:20:14 +0100 Subject: [PATCH] Correct release notes and module info (#31) # Pull Request ## Issue #29 #30 ## Description Correcting workflow names not publiushing in beta anymore and adding release notes ## License By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license. --- .github/workflows/Prerelease.yml | 4 ++-- .github/workflows/PullRequest.yml | 2 +- .github/workflows/Release.yml | 4 ++-- src/ALZ/ALZ.psd1 | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/Prerelease.yml b/.github/workflows/Prerelease.yml index 2eb284c5..8d97b68b 100644 --- a/.github/workflows/Prerelease.yml +++ b/.github/workflows/Prerelease.yml @@ -1,4 +1,4 @@ -name: Prerelease Drafter +name: Prerelease Build on: push: @@ -78,4 +78,4 @@ jobs: - name: Publish ALZ Module shell: pwsh run: | - Publish-Module -Path "./ALZ" -NuGetApiKey ${{ secrets.POWERSHELL_GALLERY_KEY }} -Force \ No newline at end of file + Publish-Module -Path "./ALZ" -NuGetApiKey ${{ secrets.POWERSHELL_GALLERY_KEY }} -ReleaseNotes "${{ steps.create_release.outputs.body }}" -Force \ No newline at end of file diff --git a/.github/workflows/PullRequest.yml b/.github/workflows/PullRequest.yml index 83ea81f1..fbcb2f05 100644 --- a/.github/workflows/PullRequest.yml +++ b/.github/workflows/PullRequest.yml @@ -1,4 +1,4 @@ -name: Branch-Build +name: Pull Request Validator on: pull_request: paths-ignore: diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 6b1ace7f..cdb01498 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -1,4 +1,4 @@ -name: Prerelease Drafter +name: Release Build on: workflow_dispatch: @@ -74,4 +74,4 @@ jobs: - name: Publish ALZ Module shell: pwsh run: | - Publish-Module -Path "./ALZ" -NuGetApiKey ${{ secrets.POWERSHELL_GALLERY_KEY }} \ No newline at end of file + Publish-Module -Path "./ALZ" -NuGetApiKey ${{ secrets.POWERSHELL_GALLERY_KEY }} -ReleaseNotes "${{ steps.create_release.outputs.body }}" -Force \ No newline at end of file diff --git a/src/ALZ/ALZ.psd1 b/src/ALZ/ALZ.psd1 index e4ec5e84..963c0a08 100644 --- a/src/ALZ/ALZ.psd1 +++ b/src/ALZ/ALZ.psd1 @@ -107,19 +107,19 @@ ) # A URL to the license for this module. - LicenseUri = 'https://github.com/Azure/ALZ-PowerShell-Module/blob/initial_module_config/LICENSE' + LicenseUri = 'https://github.com/Azure/ALZ-PowerShell-Module/blob/main/LICENSE' # A URL to the main website for this project. ProjectUri = 'https://github.com/Azure/ALZ-Powershell-Module' # A URL to an icon representing this module. - IconUri = 'https://raw.githubusercontent.com/Azure/ALZ-PowerShell-Module/main/docs/rsz_alzlogo.png?token=GHSAT0AAAAAACAOIZ6NBDR7MPRSCNBS3RQUZA4IYUQ' + IconUri = 'https://raw.githubusercontent.com/Azure/ALZ-PowerShell-Module/main/docs/rsz_alzlogo.png' # ReleaseNotes of this module - ReleaseNotes = 'This is the first release of the ALZ PowerShell Module. This module is currently in preview and is subject to change.' + # ReleaseNotes = 'This is the first release of the ALZ PowerShell Module. This module is currently in preview and is subject to change.' # Prerelease string of this module - Prerelease = 'beta' + # Prerelease = 'beta' # Flag to indicate whether the module requires explicit user acceptance for install/update/save # RequireLicenseAcceptance = $false