fix: Fixes relesae flows (#1799)
This commit is contained in:
parent
5843ec0784
commit
b3a817ee2d
3 changed files with 13 additions and 8 deletions
4
.github/workflows/build-test.yml
vendored
4
.github/workflows/build-test.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
11
.github/workflows/create-release.yml
vendored
11
.github/workflows/create-release.yml
vendored
|
|
@ -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 }}
|
||||||
|
|
|
||||||
6
.github/workflows/post-release-discord.yml
vendored
6
.github/workflows/post-release-discord.yml
vendored
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue