Skip to content

Commit 0d583f7

Browse files
committed
wip
1 parent 49a7104 commit 0d583f7

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/build-release-binaries.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ jobs:
3535
php-version: "8.2"
3636
extensions: bcmath,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,iconv,mbstring,openssl,pcntl,pdo_mysql,pdo_sqlite,pdo,phar,posix,readline,session,simplexml,sockets,sodium,sqlite3,tokenizer,xml,xmlreader,xmlwriter,zip,zlib
3737

38-
- name: Get the version
39-
id: get_version
40-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
41-
4238
- name: Install dependencies
4339
run: |
4440
composer install --prefer-dist --no-progress --no-dev --quiet
@@ -53,7 +49,7 @@ jobs:
5349
- name: Build Binary
5450
run: |
5551
echo "" > .env
56-
php php-parser app:build --build-version=${{ env.VERSION }}
52+
php php-parser app:build --build-version=${{ github.ref_name }}
5753
5854
- name: Download PHP
5955
run: |
@@ -64,20 +60,20 @@ jobs:
6460
6561
- name: SPC Combine
6662
run: |
67-
./spc micro:combine builds/php-parser -O bin/php-parser-${{ env.VERSION }}-${{ matrix.arch }}
63+
./spc micro:combine builds/php-parser -O bin/php-parser-${{ github.ref_name }}-${{ matrix.arch }}
6864
6965
- name: Upload binary as artifact
7066
uses: actions/upload-artifact@v4
7167
with:
72-
name: php-parser-${{ env.VERSION }}-${{ matrix.arch }}
73-
path: bin/php-parser-${{ env.VERSION }}-${{ matrix.arch }}
68+
name: php-parser-${{ github.ref_name }}-${{ matrix.arch }}
69+
path: bin/php-parser-${{ github.ref_name }}-${{ matrix.arch }}
7470

7571
- name: Create Release
7672
uses: softprops/action-gh-release@v1
7773
if: startsWith(github.ref, 'refs/tags/')
7874
with:
7975
files: |
80-
bin/php-parser-${{ env.VERSION }}-${{ matrix.arch }}
76+
bin/php-parser-${{ github.ref_name }}-${{ matrix.arch }}
8177
fail_on_unmatched_files: true
8278
env:
8379
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build-windows-release-binary.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ jobs:
5252
uses: actions/upload-artifact@v4
5353
with:
5454
name: php-parser-${{ github.ref_name }}-x64-win32
55-
path: bin\php-parser-${{ github.ref_name }}-x64-win32
55+
path: bin/php-parser-${{ github.ref_name }}-x64-win32.exe
5656

5757
- name: Create Release
5858
uses: softprops/action-gh-release@v1
5959
if: startsWith(github.ref, 'refs/tags/')
6060
with:
6161
files: |
62-
bin\php-parser-${{ github.ref_name }}-x64-win32
62+
bin/php-parser-${{ github.ref_name }}-x64-win32.exe
6363
fail_on_unmatched_files: true
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)