diff --git a/.github/workflows/php-package.yml b/.github/workflows/php-package.yml index 10e64e5..a26ac10 100644 --- a/.github/workflows/php-package.yml +++ b/.github/workflows/php-package.yml @@ -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 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 00b61e4..9033fc4 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -19,7 +19,7 @@ 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 @@ -27,27 +27,18 @@ jobs: 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 }} diff --git a/release-please-config.json b/release-please-config.json index e222921..1582974 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -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" }