Fix release action glob exclusion (#1644)

In softprops/action-gh-release, when using an glob pattern to exclude files, all of the files to exclude must be specified on one line. Splitting them to multiple lines causes all files to match one of the two lines. 

To combine on one line, use `|` between the patterns.
This commit is contained in:
Craig Schardt
2024-12-20 17:11:13 -06:00
committed by GitHub
parent 88bc63cf82
commit e506ac6b28

View File

@@ -557,16 +557,14 @@ jobs:
- uses: softprops/action-gh-release@v2.0.9
with:
files: |
**/*orangepi5*.xz
**/*rock5*.xz
**/@(*orangepi5*|*rock5*).xz
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: softprops/action-gh-release@v2.0.9
with:
files: |
**/!(*orangepi5*).xz
**/!(*rock5*).xz
**/!(*orangepi5*|*rock5*).xz
**/*.jar
**/photonlib*.json
**/photonlib*.zip