diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index dc1598202..0a1165549 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -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 }} diff --git a/.github/workflows/post-release-discord.yml b/.github/workflows/post-release-discord.yml new file mode 100644 index 000000000..deea4418f --- /dev/null +++ b/.github/workflows/post-release-discord.yml @@ -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