From 0499a4320b40a62a3e5a2e5655a7317ef9966b96 Mon Sep 17 00:00:00 2001 From: omars44 Date: Thu, 14 Dec 2023 16:56:36 +0200 Subject: [PATCH] ci-win-release: upload assets --- .github/workflows/windows-release.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 8c2e5d45..668c7c00 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -1,6 +1,9 @@ -name: "Windows Release Build" +name: "Upload Windows DLLs" on: + pull_request: + branches: + - "master" release: types: [ published ] @@ -9,8 +12,7 @@ jobs: strategy: fail-fast: false matrix: - # Note: keep this in sync with the Windows matrix in windows-tests.yml - php: [ "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3" ] + version: [ "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3" ] arch: [ x64, x86 ] ts: [ ts, nts ] runs-on: ubuntu-latest @@ -27,11 +29,13 @@ jobs: commit: ${{ github.sha }} # Note: keep this in sync with the uploaded artifact name in windows-tests.yml name: php_solr-dll-${{ matrix.version }}-${{ matrix.ts }}-${{ matrix.arch }}-${{ github.sha }} - - name: Create and attach release archive run: | ARCHIVE=php_solr-dll-${{ matrix.version }}-${{ matrix.ts }}-${{ matrix.arch }}-${{ github.ref_name }}.zip zip $ARCHIVE php_solr.dll CREDITS LICENSE README.md - hub release edit -a $ARCHIVE -m "" $GITHUB_REF_NAME - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + - name: Upload artifacts to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: php_solr-dll-${{ matrix.version }}-${{ matrix.ts }}-${{ matrix.arch }}-${{ github.ref_name }}.zip + overwrite: true