chore: Updates release flow (#1798)
This commit is contained in:
parent
a4522b9d43
commit
5843ec0784
2 changed files with 26 additions and 8 deletions
14
.github/workflows/create-release.yml
vendored
14
.github/workflows/create-release.yml
vendored
|
|
@ -43,7 +43,7 @@ jobs:
|
|||
tags: true
|
||||
- name: Conventional Changelog
|
||||
id: changelog
|
||||
uses: TriPSs/conventional-changelog-action@v4
|
||||
uses: TriPSs/conventional-changelog-action@v5.3.0
|
||||
with:
|
||||
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
output-file: false
|
||||
|
|
@ -51,22 +51,20 @@ jobs:
|
|||
skip-commit: true
|
||||
release-count: 1
|
||||
- name: Delete v${{ steps.changelog.outputs.version }} Tag
|
||||
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
||||
uses: dev-drprasad/delete-tag-and-release@v1.1
|
||||
with:
|
||||
delete_release: true
|
||||
tag_name: v${{ steps.changelog.outputs.version }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
- name: Delete v0.1.0 Tag
|
||||
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
||||
uses: dev-drprasad/delete-tag-and-release@v1.1
|
||||
with:
|
||||
delete_release: true
|
||||
tag_name: v0.1.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: softprops/action-gh-release@v2.0.5
|
||||
with:
|
||||
body: ${{ steps.changelog.outputs.clean_changelog }}
|
||||
tag_name: ${{ steps.nbgv.outputs.Version }}
|
||||
|
|
|
|||
20
.github/workflows/post-release-discord.yml
vendored
Normal file
20
.github/workflows/post-release-discord.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
jobs:
|
||||
post-release-discord:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.6
|
||||
with:
|
||||
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||
- name: Post Release on Discord
|
||||
uses: SethCohen/github-releases-to-discord@v1.13.1
|
||||
with:
|
||||
webhook_url: ${{ secrets.WEBHOOK_URL }}
|
||||
username: "Release Changelog"
|
||||
avatar_url: "https://cdn.discordapp.com/icons/751317910504603701/ec26ab4881753077e06122da7b78bf7c.webp"
|
||||
max_description: 2000
|
||||
Loading…
Add table
Add a link
Reference in a new issue