Skip to content

Commit 9d2018f

Browse files
committed
release yml
1 parent f44dda3 commit 9d2018f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/releases.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,18 @@ jobs:
3030
run: |
3131
find . -maxdepth 1 -not -path "./src" -not -path "./.git" -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
38+
- name: Create release
39+
uses: softprops/action-gh-release@v2
4340
env:
4441
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
run: git push origin v${{ steps.version.outputs.version }}
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 }}"
47+
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)