Skip to content

Commit 4b78594

Browse files
committed
fix: release artifact upload process
1 parent 6c39f64 commit 4b78594

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

.github/workflows/release-please.yml

+10-22
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ on:
33
branches:
44
- main
55
env:
6-
PHAR_TOOL_VERSION: 1.4.0
7-
PHAR_TOOL_REPOSITORY: clue/phar-composer
6+
DEFAULT_PHP_VERSION: 8.3
87

98
permissions:
109
contents: write
@@ -18,29 +17,18 @@ jobs:
1817
release-please:
1918
needs: verify-release
2019
runs-on: ubuntu-24.04
21-
outputs:
22-
release_created: ${{ steps.release.outputs.release_created }}
23-
tag: ${{ steps.release.outputs.tag_name }}
24-
steps:
25-
- uses: googleapis/release-please-action@v4
26-
id: release
27-
with:
28-
release-type: php
29-
- name: Output release variables
30-
run: echo ${{ toJSON(steps.release.outputs) }}
31-
upload_phar:
32-
needs:
33-
- release-please
34-
- verify-release
35-
runs-on: ubuntu-24.04
36-
if: ${{ needs.release-please.outputs.release_created }}
3720
steps:
3821
- name: Download release artifact
3922
uses: actions/download-artifact@v4
4023
with:
41-
name: build-${{ github.sha }}-8.3
24+
name: build-${{ github.sha }}-${{ env.DEFAULT_PHP_VERSION }}
4225
path: mysql2jsonl
43-
- name: Release artifact
44-
run: gh release upload ${{ needs.release-please.outputs.tag }} mysql2jsonl
26+
- uses: googleapis/release-please-action@v4
27+
id: release
28+
with:
29+
release-type: php
30+
- name: Upload Release Artifact
31+
if: ${{ steps.release.outputs.release_created }}
4532
env:
46-
GH_TOKEN: ${{ github.token }}
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
run: gh release upload ${{ steps.release.outputs.tag_name }} ./mysql2jsonl

0 commit comments

Comments
 (0)