Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize pushes to psalm/phar #9399

Merged
merged 1 commit into from Feb 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions bin/github-deploy-phar.sh
Expand Up @@ -23,12 +23,19 @@ git config user.email "github@muglug.com"
git config user.name "Automated commit"
git add --all .
git commit -m "Updated Psalm phar to commit ${GITHUB_SHA}"
git push origin master

tag=${GITHUB_REF/refs\/heads\//}
tag=${tag/refs\/tags\//}

if [[ "$tag" != 'master' ]] ; then
git tag "$tag"
git push origin "$tag"
fi

# this script runs on:
# 1. pushes to master
# 2. publishing releases
#
# So we push master to psalm/phar:master
# and tags to psalm/phar:$tag

git push origin "$tag"