Skip to content

Commit

Permalink
Automate release makeing on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-cpp committed Apr 19, 2023
1 parent 99b2b87 commit 7df9726
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -44,6 +44,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
needs: [ build ]
if: ${{ github.event_name == 'push' }}
steps:
Expand Down Expand Up @@ -78,4 +79,14 @@ jobs:
run: dotnet nuget push bin/Release/*.nupkg --source https://nuget.pkg.github.com/$GITHUB_REPOSITORY_OWNER/index.json --api-key ${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Make a release
uses: ncipollo/release-action@v1
with:
name: 'MonoGame.Library.SDL ${{ github.ref_name }}'
tag: ${{ github.ref_name }}
allowUpdates: true
removeArtifacts: true
artifacts: "bin/Release/*.nupkg"
token: ${{ secrets.GITHUB_TOKEN }}
if: github.ref_type == 'tag'

2 changes: 1 addition & 1 deletion MonoGame.Library.SDL.csproj
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<NoWarn>NU5128</NoWarn>
<Title>MonoGame build of SDL Library</Title>
<Description>This package contains an SDL library built for distributing MonoGame games..</Description>
<Description>This package contains an SDL library built for distributing MonoGame games.</Description>
<IncludeBuildOutput>false</IncludeBuildOutput>
</PropertyGroup>

Expand Down

0 comments on commit 7df9726

Please sign in to comment.