Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Apr 30, 2021
1 parent 65a99b3 commit 83c59a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/php80.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ jobs:
done
assets+=("./scripts/Get-PhpNightly.ps1")
assets+=("./scripts/Get-Php.ps1")
gh release delete "php8.0" -y || true
gh release create "php8.0" "${assets[@]}" -t "php8.0" -n "php8.0"
release='php8.0'
if ! gh release view "$release"; then
gh release create "$release" "${assets[@]}" -t "$release" -n "$release"
else
gh release upload "$release" "${assets[@]}" --clobber
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 7 additions & 4 deletions .github/workflows/phpmaster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,12 @@ jobs:
done
assets+=("./scripts/Get-PhpNightly.ps1")
assets+=("./scripts/Get-Php.ps1")
gh release delete "php8.1" -y || true
gh release create "php8.1" "${assets[@]}" -t "php8.1" -n "php8.1"
gh release delete "master" -y || true
gh release create "master" "${assets[@]}" -t "master" -n "master"
for release in php8.1 master; do
if ! gh release view "$release"; then
gh release create "$release" "${assets[@]}" -t "$release" -n "$release"
else
gh release upload "$release" "${assets[@]}" --clobber
fi
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 83c59a5

Please sign in to comment.