Skip to content

tests-passed

tests-passed #6

Workflow file for this run

name: Deploy
on:
repository_dispatch:
types: [tests-passed]
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Get tag name
id: tag_name
run: echo "tag_name=${{ github.event.client_payload.tag_name }}" >> $GITHUB_ENV
- name: Build phar
run: |
composer install
composer phar:build
- name: Publish Release
uses: ncipollo/release-action@v1
with:
tag: ${{ env.tag_name }}
artifacts: 'update-tool.phar'
artifactErrorsFailBuild: true
body: Version ${{ env.tag_name }}
generateReleaseNotes: true
makeLatest: true