Skip to content

Commit

Permalink
.phar file with release
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Oct 31, 2023
1 parent 9f9f262 commit 208045c
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/build-phar.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Build PHAR
name: Build .phar for relase

on:
release:
types: [ created ]
on: push

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -24,10 +24,8 @@ jobs:
- name: Generate PHAR file
run: composer box compile

- name: Upload PHAR to Release
uses: actions/upload-release-asset@v1
- name: Upload phar to release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/svgtinyps.phar
asset_name: svgtinyps.phar
asset_content_type: application/octet-stream
files: build/svgtinyps.phar

0 comments on commit 208045c

Please sign in to comment.