Skip to content

Commit

Permalink
chore: inluded create release and update packagist trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
gritzkoo committed Jun 25, 2022
1 parent fb454b8 commit 3fddc75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/packagist.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Packagist.org packag update
on:
workflow_dispatch:

# push:
# branches:
# - main
release:
types:
- published
jobs:
update:
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3fddc75

Please sign in to comment.