Skip to content

Commit 69a162e

Browse files
committed
Rewrite job for release attestation and upload
1 parent ed86c97 commit 69a162e

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,24 @@ jobs:
7272
id-token: write
7373
attestations: write
7474
steps:
75+
- uses: actions/download-artifact@v8
76+
if: github.event_name != 'pull_request'
77+
with:
78+
merge-multiple: true
79+
80+
- name: Display structure of downloaded files
81+
if: github.event_name != 'pull_request'
82+
run: ls -R
83+
7584
- name: Generate build provenance attestation
7685
if: github.event_name != 'pull_request'
7786
uses: actions/attest@v4
7887
with:
79-
subject-path: 'artifacts/php*'
88+
subject-path: 'php_rar-*.zip'
8089

81-
- name: Upload artifacts to the release
82-
uses: php/php-windows-builder/release@v1
83-
with:
84-
release: ${{ github.ref_name }}
85-
token: ${{ secrets.GITHUB_TOKEN }}
86-
draft: 'true'
90+
- name: Upload all artifacts
91+
if: ${{ startsWith(github.ref, 'refs/tags') }}
92+
env:
93+
GH_TOKEN: ${{ github.token }}
94+
run: |
95+
gh release upload ${{ github.ref_name }} php_rar-*.zip --clobber --repo php-win-ext/rar

0 commit comments

Comments
 (0)