Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/php-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: |
chmod +x ./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar
./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar build ./ mysql2jsonl




- uses: actions/upload-artifact@v4
with:
name: build-${{ github.sha }}-${{ matrix.php-version }}
path: mysql2jsonl
31 changes: 11 additions & 20 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,26 @@ jobs:
needs: verify-release
runs-on: ubuntu-24.04
outputs:
release_created: ${{ steps.release.outputs.release_created }}
release_created: ${{ steps.release.outputs.releases_created }}
tag: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: php
upload_phar:
needs: release-please
needs:
- release-please
- verify-release
runs-on: ubuntu-24.04
if: ${{ needs.release-please.outputs.release_created == true }}
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- name: Download release artifact
uses: actions/download-artifact@v4
with:
ref: ${{ needs.release-please.outputs.tag }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
- name: Download build package
run: gh release download v${{ env.PHAR_TOOL_VERSION }} -R=${{ env.PHAR_TOOL_REPOSITORY }}
- name: Build package
run: |
chmod +x ./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar
./phar-composer-${{ env.PHAR_TOOL_VERSION }}.phar build ./ mysql2json
env:
GH_TOKEN: ${{ github.token }}
- name: Upload package
run: gh release upload ${{ needs.release-please.outputs.tag }} mysql2json
name: build-${{ github.sha }}-8.3
path: mysql2jsonl
- name: Release artifact
run: gh release upload ${{ needs.release-please.outputs.tag }} mysql2jsonl
env:
GH_TOKEN: ${{ github.token }}
8 changes: 4 additions & 4 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"bump-patch-for-minor-pre-major": false,
"draft": false,
"include-v-in-tag": false,
"prerelease": false,
"extra-files": [
"bin/mysql2jsonl"
]
"prerelease": false
}
},
"extra-files": [
"bin/mysql2jsonl"
],
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}