Skip to content

Commit

Permalink
Tweak PHAR release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccreary committed Aug 23, 2023
1 parent 8c4b424 commit 6eb55e2
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/publish-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,21 @@ jobs:
echo "tag=${GITHUB_REF##*v}" >> "$GITHUB_OUTPUT"
- name: Checkout the code
uses: actions/checkout@v3
# with:
# ref: v${{ steps.tag.outputs.tag }}
with:
ref: v${{ steps.tag.outputs.tag }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: humbug/box
coverage: none
- name: Install the dependencies
run: COMPOSER=composer-dev.json composer install --no-dev --prefer-dist --no-progress
- name: Overwrite Composer for build
run: mv composer-dev.json composer.json
- name: Install Composer dependencies
run: composer install --no-dev --prefer-dist --no-progress
- name: Create the PHAR file.
run: box compile --no-parallel
- name: Upload the PHAR artifact
uses: actions/upload-artifact@v3
with:
name: shift-cli.phar
path: builds/shift-cli

# - name: Upload the PHAR to release
# run: gh release upload v${{ steps.tag.outputs.tag }} builds/pint.phar
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload the PHAR to release
run: gh release upload v${{ steps.tag.outputs.tag }} builds/shift-cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6eb55e2

Please sign in to comment.