Skip to content

Commit

Permalink
fixed release workflow and added helper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreas committed Feb 1, 2022
1 parent 31d6b31 commit 79c4226
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ jobs:
run: dotnet pack --configuration Release --include-symbols /p:Version=${{ steps.version.outputs.version-without-v }} --no-build --output .

- name: Push
run: dotnet nuget push ${PROJECT_NAME}.${VERSION}.nupkg --source https://nuget.pkg.github.com/${GITHUB_USER}/index.json --api-key ${GITHUB_TOKEN}
run: dotnet nuget push ${PROJECT_NAME}.${{ steps.version.outputs.version-without-v }}.nupkg --source https://nuget.pkg.github.com/${GITHUB_USER}/index.json --api-key ${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
VERSION="$1"
if [ "$VERSION" = "" ]; then
echo "please provide a version as first parameter (e.g. 1.0.0)"
exit 1
fi
git tag -a "v$VERSION" -m "release $VERSION" && git push origin --tags
7 changes: 7 additions & 0 deletions unrelease.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
VERSION="$1"
if [ "$VERSION" = "" ]; then
echo "please provide a version as first parameter (e.g. 1.0.0)"
exit 1
fi
git tag -d "v$VERSION" && git push --delete origin "v$VERSION"

0 comments on commit 79c4226

Please sign in to comment.