Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 6eb55e2

Browse files
committed
Tweak PHAR release workflow
1 parent 8c4b424 commit 6eb55e2

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/publish-phar.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,21 @@ jobs:
2424
echo "tag=${GITHUB_REF##*v}" >> "$GITHUB_OUTPUT"
2525
- name: Checkout the code
2626
uses: actions/checkout@v3
27-
# with:
28-
# ref: v${{ steps.tag.outputs.tag }}
27+
with:
28+
ref: v${{ steps.tag.outputs.tag }}
2929
- name: Setup PHP
3030
uses: shivammathur/setup-php@v2
3131
with:
3232
php-version: 8.1
3333
tools: humbug/box
3434
coverage: none
35-
- name: Install the dependencies
36-
run: COMPOSER=composer-dev.json composer install --no-dev --prefer-dist --no-progress
35+
- name: Overwrite Composer for build
36+
run: mv composer-dev.json composer.json
37+
- name: Install Composer dependencies
38+
run: composer install --no-dev --prefer-dist --no-progress
3739
- name: Create the PHAR file.
3840
run: box compile --no-parallel
39-
- name: Upload the PHAR artifact
40-
uses: actions/upload-artifact@v3
41-
with:
42-
name: shift-cli.phar
43-
path: builds/shift-cli
44-
45-
# - name: Upload the PHAR to release
46-
# run: gh release upload v${{ steps.tag.outputs.tag }} builds/pint.phar
47-
# env:
48-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
- name: Upload the PHAR to release
42+
run: gh release upload v${{ steps.tag.outputs.tag }} builds/shift-cli
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)