Skip to content

Commit

Permalink
Update GitHub Actions workflow to auto-release PHAR
Browse files Browse the repository at this point in the history
The GitHub Actions workflow has been improved to automatically release the PHAR artifact. This removes the need for manual attaching of the PHAR to the release. It now uses the `softprops/action-gh-release@v2` action, which eliminates the necessity for separate download and attach artifact steps.
  • Loading branch information
koriym committed Jun 14, 2024
1 parent da5247d commit 720378d
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/release-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,9 @@ jobs:
name: asd.phar
path: bin/asd.phar

- name: Download PHAR
uses: actions/download-artifact@v2
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: asd.phar

- name: Attach artifacts to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/asd.phar
asset_name: asd.phar
asset_content_type: application/octet-stream
files: |
bin/asd.phar

0 comments on commit 720378d

Please sign in to comment.