Skip to content

chore: move release output to release-please job #16

chore: move release output to release-please job

chore: move release output to release-please job #16

on:
push:
branches:
- main
env:
PHAR_TOOL_VERSION: 1.4.0
PHAR_TOOL_REPOSITORY: clue/phar-composer
permissions:
contents: write
pull-requests: write
name: Create Release
jobs:
verify-release:
uses: ./.github/workflows/php-package.yml
release-please:
needs: verify-release
runs-on: ubuntu-24.04
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: php
- name: Output release variables
run: echo ${{ toJSON(steps.release.outputs) }}
upload_phar:
needs:
- release-please
- verify-release
runs-on: ubuntu-24.04
if: ${{ needs.release-please.outputs.release_created }}
steps:
- name: Download release artifact
uses: actions/download-artifact@v4
with:
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 }}