fix: Fixes relesae flows (#1799)

This commit is contained in:
Kamron Batman 2024-05-28 15:24:03 -07:00 committed by GitHub
parent 5843ec0784
commit b3a817ee2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 8 deletions

View file

@ -24,7 +24,7 @@ jobs:
with: with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET 8 - name: Setup .NET 8
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: 8.0.x dotnet-version: 8.0.x
- name: Install Prerequisites - name: Install Prerequisites
@ -90,7 +90,7 @@ jobs:
with: with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET 8 - name: Setup .NET 8
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: 8.0.x dotnet-version: 8.0.x
- name: Build - name: Build

View file

@ -15,7 +15,7 @@ jobs:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Setup .NET 8 - name: Setup .NET 8
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: 8.0.x dotnet-version: 8.0.x
- name: Install NGBV - name: Install NGBV
@ -41,6 +41,9 @@ jobs:
with: with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
tags: true tags: true
- name: Pin Conventional Changelog Commits Dependency
run: |
npm i conventional-changelog-conventionalcommits@v7.0.2
- name: Conventional Changelog - name: Conventional Changelog
id: changelog id: changelog
uses: TriPSs/conventional-changelog-action@v5.3.0 uses: TriPSs/conventional-changelog-action@v5.3.0
@ -51,20 +54,20 @@ jobs:
skip-commit: true skip-commit: true
release-count: 1 release-count: 1
- name: Delete v${{ steps.changelog.outputs.version }} Tag - name: Delete v${{ steps.changelog.outputs.version }} Tag
uses: dev-drprasad/delete-tag-and-release@v1.1 uses: dev-drprasad/delete-tag-and-release@v1
with: with:
delete_release: true delete_release: true
tag_name: v${{ steps.changelog.outputs.version }} tag_name: v${{ steps.changelog.outputs.version }}
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Delete v0.1.0 Tag - name: Delete v0.1.0 Tag
uses: dev-drprasad/delete-tag-and-release@v1.1 uses: dev-drprasad/delete-tag-and-release@v1
with: with:
delete_release: true delete_release: true
tag_name: v0.1.0 tag_name: v0.1.0
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Create Release - name: Create Release
id: create_release id: create_release
uses: softprops/action-gh-release@v2.0.5 uses: softprops/action-gh-release@v2
with: with:
body: ${{ steps.changelog.outputs.clean_changelog }} body: ${{ steps.changelog.outputs.clean_changelog }}
tag_name: ${{ steps.nbgv.outputs.Version }} tag_name: ${{ steps.nbgv.outputs.Version }}

View file

@ -1,3 +1,5 @@
name: Post Release to Discord
on: on:
release: release:
types: types:
@ -7,12 +9,12 @@ jobs:
post-release-discord: post-release-discord:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4.1.6 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Post Release on Discord - name: Post Release on Discord
uses: SethCohen/github-releases-to-discord@v1.13.1 uses: SethCohen/github-releases-to-discord@v1
with: with:
webhook_url: ${{ secrets.WEBHOOK_URL }} webhook_url: ${{ secrets.WEBHOOK_URL }}
username: "Release Changelog" username: "Release Changelog"