Skip to content

Commit

Permalink
Create relase.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imsziya authored May 29, 2024
1 parent 4b048f3 commit 638cbe6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/relase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: Publish NuGet Package

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 2.1
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore

- name: Pack
run: dotnet pack --no-build --configuration Release
- name: Push NuGet package
run: dotnet nuget push **/*.nupkg --source "nuget.org" --configfile nuget.config
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

0 comments on commit 638cbe6

Please sign in to comment.