limit release uploads to binaries
This commit is contained in:
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@@ -89,7 +89,12 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TAG: ${{ needs.prepare-release.outputs.tag }}
|
TAG: ${{ needs.prepare-release.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
gh release upload "$TAG" release/* --clobber
|
set -euo pipefail
|
||||||
|
shopt -s nullglob
|
||||||
|
for file in release/*.dmg release/*.zip; do
|
||||||
|
[ -e "$file" ] || continue
|
||||||
|
gh release upload "$TAG" "$file" --clobber
|
||||||
|
done
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
needs: prepare-release
|
needs: prepare-release
|
||||||
@@ -118,8 +123,11 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TAG: ${{ needs.prepare-release.outputs.tag }}
|
TAG: ${{ needs.prepare-release.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
Get-ChildItem -Path "release" -File -Recurse | ForEach-Object {
|
$patterns = @("*.exe", "*.zip")
|
||||||
gh release upload $env:TAG $_.FullName --clobber
|
foreach ($pattern in $patterns) {
|
||||||
|
Get-ChildItem -Path "release" -Filter $pattern -File | ForEach-Object {
|
||||||
|
gh release upload $env:TAG $_.FullName --clobber
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
@@ -148,4 +156,9 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TAG: ${{ needs.prepare-release.outputs.tag }}
|
TAG: ${{ needs.prepare-release.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
gh release upload "$TAG" release/* --clobber
|
set -euo pipefail
|
||||||
|
shopt -s nullglob
|
||||||
|
for file in release/*.AppImage release/*.deb release/*.tar.gz; do
|
||||||
|
[ -e "$file" ] || continue
|
||||||
|
gh release upload "$TAG" "$file" --clobber
|
||||||
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user