Skip to content

Commit

Permalink
fix: Fixes relesae flows (#1799)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman committed May 28, 2024
1 parent 5843ec0 commit b3a817e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install Prerequisites
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Setup .NET 8
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install NGBV
Expand All @@ -41,6 +41,9 @@ jobs:
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
tags: true
- name: Pin Conventional Changelog Commits Dependency
run: |
npm i conventional-changelog-conventionalcommits@v7.0.2
- name: Conventional Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v5.3.0
Expand All @@ -51,20 +54,20 @@ jobs:
skip-commit: true
release-count: 1
- 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:
delete_release: true
tag_name: v${{ steps.changelog.outputs.version }}
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Delete v0.1.0 Tag
uses: dev-drprasad/delete-tag-and-release@v1.1
uses: dev-drprasad/delete-tag-and-release@v1
with:
delete_release: true
tag_name: v0.1.0
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2.0.5
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.clean_changelog }}
tag_name: ${{ steps.nbgv.outputs.Version }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/post-release-discord.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Post Release to Discord

on:
release:
types:
Expand All @@ -7,12 +9,12 @@ jobs:
post-release-discord:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v4
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
uses: SethCohen/github-releases-to-discord@v1
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
username: "Release Changelog"
Expand Down

0 comments on commit b3a817e

Please sign in to comment.