Skip to content

Commit fa15755

Browse files
committed
Publish build artifacts for push events
1 parent eb80ef9 commit fa15755

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/windows-tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,25 @@ jobs:
5656
${{ steps.prepare-build.outputs.build-dir }}\php_mongodb.dll
5757
${{ steps.prepare-build.outputs.build-dir }}\php_mongodb.pdb
5858
59+
- name: Copy DLL and PDB files to CWD
60+
if: ${{ github.event_name == 'push' }}
61+
run: |
62+
cp .github/workflows/get-build-dir.bat .
63+
for /F "usebackq tokens=*" %%i in (`get-build-dir.bat`) do set BUILD_DIR=%%i
64+
echo BUILD_DIR=%BUILD_DIR%
65+
cp %BUILD_DIR%\php_mongodb.dll .
66+
cp %BUILD_DIR%\php_mongodb.pdb .
67+
68+
- name: Upload DLL and PDB files as build artifacts
69+
if: ${{ github.event_name == 'push' }}
70+
uses: actions/upload-artifact@v3
71+
with:
72+
name: php_mongodb-${{ github.sha }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.arch }}
73+
path: |
74+
php_mongodb.dll
75+
php_mongodb.pdb
76+
retention-days: 3
77+
5978
test:
6079
name: "Windows Tests"
6180
runs-on: windows-2022

0 commit comments

Comments
 (0)