update release action

This commit is contained in:
novice.li 2024-01-20 22:07:20 +08:00
parent 6faea65352
commit 530e55066d
1 changed files with 15 additions and 0 deletions

View File

@ -42,6 +42,21 @@ jobs:
# Delete the release
curl -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/${RELEASE_ID}"
- name: Set up Git
run: |
git config user.email "${{ GITHUB_ACTOR }}@users.noreply.github.com"
git config user.name "${{ GITHUB_ACTOR }}"
- name: Create Tag
run: git tag -a v${{ github.run_number }} -m "Release version v${{ github.run_number }}"
- name: Push Tag
run: git push origin v${{ github.run_number }}
- name: ls
run: |
ls -l
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1