Skip to content

Commit 40f274b

Browse files
committed
release yml
1 parent 55da97e commit 40f274b

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/releases.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ jobs:
3030
run: |
3131
find . -maxdepth 1 -not -path "./src" -not -path "./composer.json" -not -path "./LICENSE.md" -not -path "./README.md" -not -path "." -print0 | xargs -0 rm -rf
3232
33-
- name: Git add
34-
run: git add .
35-
3633
- name: Git commit
37-
run: git commit -m "v${{ steps.version.outputs.version }}"
38-
39-
- name: Git tag
40-
run: git tag v${{ steps.version.outputs.version }}
34+
uses: stefanzweifel/git-auto-commit-action@v5
35+
with:
36+
commit_message: "Update version to v${{ steps.version.outputs.version }}"
4137

42-
- name: Git push tags
43-
run: git push origin v${{ steps.version.outputs.version }}
38+
- name: Create release
39+
uses: softprops/action-gh-release@v2
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
tag_name: v${{ steps.version.outputs.version }}
44+
name: v${{ steps.version.outputs.version }}
45+
target_commitish: ${{ github.ref_name }}
46+
make_latest: "${{ github.ref_name == github.event.repository.default_branch }}"

0 commit comments

Comments
 (0)