From 3fddc75a21e987c3ec4217f0ef9a5604cd7c34f4 Mon Sep 17 00:00:00 2001 From: Gritzko Daniel Kleiner Date: Sat, 25 Jun 2022 14:43:20 -0300 Subject: [PATCH] chore: inluded create release and update packagist trigger --- .github/workflows/packagist.yml | 7 +++---- .github/workflows/test.yml | 11 +++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/packagist.yml b/.github/workflows/packagist.yml index 25e820b..85173aa 100644 --- a/.github/workflows/packagist.yml +++ b/.github/workflows/packagist.yml @@ -1,10 +1,9 @@ name: Packagist.org packag update on: workflow_dispatch: - - # push: - # branches: - # - main + release: + types: + - published jobs: update: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6650b5..a9a485a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,3 +15,14 @@ jobs: env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: composer coveralls + release-on-push: + runs-on: ubuntu-latest + needs: + - test + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: rymndhng/release-on-push-action@master + with: + bump_version_scheme: patch