Skip to content

Commit 134e7c8

Browse files
committed
Fixed the release action
1 parent fa85ed6 commit 134e7c8

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
# Restore dotnet tools
3131
dotnet tool restore
3232
# Build Corral
33-
dotnet build -c Release ${SOLUTION}
33+
dotnet build -p:Version=$VERSION -c Release ${SOLUTION}
3434
# Create packages
35-
dotnet pack -p:PackageVersion=$VERSION --no-build -c Release ${SOLUTION}
35+
dotnet pack -p:Version=$VERSION --no-build -c Release ${SOLUTION}
3636
- name: Deploy to nuget
3737
run:
3838
dotnet nuget push "source/Corral/bin/Release/Corral*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,11 @@ flags from the file `filename`.
4242

4343
## Versioning and Release
4444

45-
The current version of Boogie is noted in a [build property](source/Directory.Build.props).
46-
To push a new version to nuget, perform the following steps:
45+
To push a new version to nuget, publish a new release with a tag of the form
46+
`vx.y.z`, where `x.y.z` is the updated version.
4747

48-
- Update the version (e.g., x.y.z) and commit the change
49-
- git tag vx.y.z
50-
- git push --atomic origin master vx.y.z
51-
52-
The [CI workflow](.github/workflows/test.yml) will build and push the packages.
48+
The [release workflow](.github/workflows/release.yml) will automatically build
49+
and push the packages.
5350

5451

5552
[license-badge]: https://img.shields.io/github/license/boogie-org/corral?color=blue

0 commit comments

Comments
 (0)