Skip to content

Commit

Permalink
Create dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wryyyyyyyyyyyyyyyyyyyy-afk authored Nov 30, 2024
1 parent 57591cc commit aa6c17c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Package

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release

- name: Pack
run: dotnet pack --configuration Release --output ./output

- name: Publish to GitHub Packages
run: dotnet nuget push ./output/*.nupkg --source github --api-key ${{ secrets.GITHUB_TOKEN }}

0 comments on commit aa6c17c

Please sign in to comment.