Skip to content

Commit

Permalink
Merge pull request #62 from novuhq/bug/failed-publish-action
Browse files Browse the repository at this point in the history
bug: Fixed failed publish action
  • Loading branch information
toddb committed Aug 28, 2023
2 parents 97b768c + 47b6193 commit 0999522
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dotnet-deploy.yaml
@@ -1,5 +1,5 @@
name: "Deploy to Nuget"
# Step One: Perhaps most importantly, the trigger has changed, this workflow will run whenever a tag is pushed
# Step One: Perhaps most importantly, the trigger has changed, this workflow will run whenever a tag is pushed
# to the repository that matches the v#.#.# pattern (where # is one or more digits).
on:
push:
Expand All @@ -21,13 +21,13 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
# Step Two: build

# Step Two: build
- name: Build Novu Solution (all projects)
working-directory: ${{ WORKING_DIRECTORY }}
working-directory: ${{ env.WORKING_DIRECTORY }}
run: dotnet build --configuration Release

# Step Three: package each of the libraries with the version updated (note: this allow source to hold version 0.0.0)
# Step Three: package each of the libraries with the version updated (note: this allow source to hold version 0.0.0)
- name: Get version
id: version
uses: battila7/get-version-action@v2
Expand All @@ -44,7 +44,7 @@ jobs:
## dotnet pack Novu.Sync/Novu.Sync.csproj --no-restore --no-build --configuration Release -p:PackageVersion=0.0.0.0 -p:Version=0.0.0.0 --output .
run: dotnet pack ${{ env.WORKING_DIRECTORY }}/Novu.Sync/Novu.Sync.csproj --no-restore --no-build --configuration Release -p:PackageVersion=${{ steps.version.outputs.version-without-v }} -p:Version=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}

# Step Four: publish all
# Step Four: publish all
- name: Novu — push Nuget package
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY}}/Novu.${{ steps.version.outputs.version-without-v }}.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL}}

Expand Down
15 changes: 1 addition & 14 deletions RELEASE.md
Expand Up @@ -4,19 +4,6 @@ Releases are triggered via a GitHub Action. In order for this Action to be trigg

## Current Process

Once it has been determined that a new release is ready, create a new branch called `release/<version>`. This branch will serve as a place where you can do
version bumps prior to triggering a release in the UI.

For the sake of documentation, we will be releasing `1.0.0`.

- Create a `release/v1.0.0`
- Update the following file for the version bump:
- `src/Novu/Novu.csproj` and update the `<Version></Version>` tag to the new version
```csharp
...
<Version>1.0.0</Version>
...
```
- Merge this new change back into `main`
- Navigate to Releases, Draft a new Release
- Create a new tag with the name `v1.0.0`.
Expand All @@ -25,7 +12,7 @@ For the sake of documentation, we will be releasing `1.0.0`.
- Enter your release notes
- Check the `Set as the latest release` box and publish release

From here, GitHub Actions will trigger and publish the new release to Nuget. It generally takes around 5-10 minutes for the release to run and be available
From here, GitHub Actions will trigger and publish the new release to Nuget. It generally takes around 5-10 minutes for the release to run and be available
on Nuget.

## How to release a new Feature branch
Expand Down

0 comments on commit 0999522

Please sign in to comment.