Skip to content

Commit c102d55

Browse files
committed
Add Github Packages
1 parent 1fec61b commit c102d55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,15 @@ jobs:
9292
UNITTMP: ${{ github.workspace }}/unit_temp
9393
upload_url: ${{ env.upload_url }}
9494

95+
- name: Publish to GitHub Packages
96+
run: |
97+
echo "Publishing package to GitHub Packages..."
98+
package_name="unit-php${{ matrix.php_version }}.deb"
99+
package_path="$UNITTMP/$package_name"
100+
curl -X PUT -u ${{ github.actor }}:${{ secrets.RELEASE_TOKEN }} \
101+
-H "Content-Type: application/octet-stream" \
102+
--data-binary @$package_path \
103+
"https://maven.pkg.github.com/${{ github.repository }}/packages/$package_name"
104+
95105
96106

0 commit comments

Comments
 (0)