From 3a1e8cafbbe568140463696bfb54aa4a9738d5ab Mon Sep 17 00:00:00 2001 From: Christian Heimlich Date: Wed, 1 Nov 2023 10:44:01 -0400 Subject: [PATCH] Actions: Exclude pages artifact from releases --- .../master-pull-request-merge-reaction.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/master-pull-request-merge-reaction.yml b/.github/workflows/master-pull-request-merge-reaction.yml index 6bff98e..6d00eed 100644 --- a/.github/workflows/master-pull-request-merge-reaction.yml +++ b/.github/workflows/master-pull-request-merge-reaction.yml @@ -33,11 +33,14 @@ jobs: match_end: \) run: | $project_lists = Get-Content -Raw CMakeLists.txt - if(!($project_lists -match '(?<=${{ env.match_start }})(.*)(?=${{ env.match_end }})')){ - throw "Could not get target FP version!" - } - $target_version = "v$($Matches[1].Trim())" - echo "fp_version=$target_version" >> $Env:GITHUB_OUTPUT + if(!($project_lists -match '(?<=${{ env.match_start + }})(.*)(?=${{ + env.match_end + }})')){ + throw"Could not get target FP version!" + } + $target_version="v$($Matches[1].Trim())" + echo"fp_version=$target_version">> $Env:GITHUB_OUTPUT - name: Tag master with new version tag uses: oblivioncth/actions/git/tag@dev with: @@ -106,7 +109,7 @@ jobs: - name: Zip up release artifacts shell: pwsh run: | - $artifact_folders = Get-ChildItem -Directory -Path "${{ env.artifacts_path }}" + $artifact_folders = Get-ChildItem -Directory -Path "${{ env.artifacts_path }}" -Exclude "github-pages" foreach($art_dir in $artifact_folders) { $name = $art_dir.name