Skip to content

Commit

Permalink
ci-win-release: upload assets
Browse files Browse the repository at this point in the history
  • Loading branch information
omars44 committed Dec 14, 2023
1 parent 5ba46ca commit 0499a43
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: "Windows Release Build"
name: "Upload Windows DLLs"

on:
pull_request:
branches:
- "master"
release:
types: [ published ]

Expand All @@ -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
Expand All @@ -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}}
- 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

0 comments on commit 0499a43

Please sign in to comment.