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

Improve workflow to publish the phar to the release. #151

Merged
merged 2 commits into from
Feb 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add support to dispatch publish-phar workflow
  • Loading branch information
shivammathur committed Feb 21, 2023
commit f2286c2ad652c5dc94200e92123297b628a6b56f
11 changes: 10 additions & 1 deletion .github/workflows/publish-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Publish the released PHAR
on:
release:
types: [created]
workflow_dispatch:
inputs:
tag:
description: 'Tag release version'
required: true

jobs:
publish:
Expand All @@ -13,7 +18,11 @@ jobs:
steps:
- name: Extract the tag version
id: tag
run: echo ::set-output name=tag::${GITHUB_REF##*v}
run: |
if [ "${{ github.event_name == 'workflow_dispatch' }}" ]; then
GITHUB_REF=${{ github.event.inputs.tag }}
fi
echo "tag=${GITHUB_REF##*v}" >> "$GITHUB_OUTPUT"

- name: Checkout the code
uses: actions/checkout@v3
Expand Down