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