Skip to content

Commit

Permalink
Add step to create release in PHP workflow
Browse files Browse the repository at this point in the history
A new step has been added within the PHP workflow that automates the process of creating a release. This step is triggered when changes are pushed to the main branch and uses the 'create-release' action to generate a new release using the latest tag.
  • Loading branch information
MarjovanLier committed Jan 7, 2024
1 parent ab650a5 commit d2f1266
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,14 @@ jobs:
NEW_TAG=${{ steps.new-tag.outputs.new_tag }}
git tag $NEW_TAG
git push origin $NEW_TAG
- name: Create release
if: github.ref == 'refs/heads/main'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.new-tag.outputs.new_tag }}
release_name: Release ${{ steps.new-tag.outputs.new_tag }}
draft: false
prerelease: false

0 comments on commit d2f1266

Please sign in to comment.