Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomet authored Feb 15, 2024
1 parent 731fac1 commit 524c8c4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy and Update on Release
on:
release:
types:
- published

jobs:
deploy_and_update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: master

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0'

- name: Build and Publish
run: |
dotnet build
dotnet publish -o build-output
- name: Package and Push NuGet Package to GitHub Packages
if: contains(env.tag, '-prod')
run: |
dotnet pack --configuration Release --output nupkg/
nuget push nupkg/*.nupkg -Source https://nuget.pkg.github.com/The-Poolz/index.json -ApiKey ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 524c8c4

Please sign in to comment.