Skip to content

Commit

Permalink
release yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rust17 committed Dec 27, 2024
1 parent cbd15f2 commit f44dda3
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ jobs:
run: |
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
- name: Git add
run: git add .

- name: Git commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update version to v${{ steps.version.outputs.version }}"
run: git commit -m "v${{ steps.version.outputs.version }}"

- name: Git tag
run: git tag v${{ steps.version.outputs.version }}

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

0 comments on commit f44dda3

Please sign in to comment.