Skip to content

Commit 03edfff

Browse files
committed
Merged pull request #1043
* pr/1043: Update tests workflow to support immutable releases
2 parents 9b63d3d + 6cf5546 commit 03edfff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
branches:
66
- 'master'
77
- 'xdebug_*'
8+
tags:
9+
- '*'
810
pull_request:
9-
release:
10-
types: [created]
1111
create:
1212

1313
jobs:
@@ -101,10 +101,11 @@ jobs:
101101
runs-on: ubuntu-latest
102102
name: "PIE Release Artifacts"
103103
needs: windows
104-
if: ${{ github.event_name == 'release' }}
104+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
105105
steps:
106106
- name: Upload artifact to the release
107107
uses: php/php-windows-builder/release@v1
108108
with:
109-
release: ${{ github.event.release.tag_name }}
109+
release: ${{ github.ref }}
110110
token: ${{ secrets.GITHUB_TOKEN }}
111+
draft: 'true'

0 commit comments

Comments
 (0)