From dca48f2769cec29e7d870801e3141212170bc735 Mon Sep 17 00:00:00 2001 From: TehMuffinMoo Date: Mon, 4 Mar 2024 17:47:48 +0000 Subject: [PATCH] New workflow --- .github/workflows/Publish Release.yaml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/Publish Release.yaml diff --git a/.github/workflows/Publish Release.yaml b/.github/workflows/Publish Release.yaml new file mode 100644 index 00000000..67630f3d --- /dev/null +++ b/.github/workflows/Publish Release.yaml @@ -0,0 +1,37 @@ +name: Rebuild Documentation + +on: workflow_dispatch +# push: +# branches: [main] + +jobs: + Publish-Release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Import Module + shell: pwsh + run: | + $Manifest = Test-ModuleManifest -Path "./Modules/ibPS/ibPS.psd1" -ErrorAction Stop + $Version = "v$($Manifest.Version.ToString())" + Write-Output "ModuleVersion=$($Version)" | Out-File -FilePath $ENV:GITHUB_ENV -Encoding utf8 -Append + + $ReleaseNotes = Get-Content -Path './RELEASE.md' -Raw + Write-Output "ReleaseNotes<