Skip to content

Commit

Permalink
Merge pull request #12 from B3zaleel/setup-nuget-publishing
Browse files Browse the repository at this point in the history
Setup NuGet publishing workflow
  • Loading branch information
B3zaleel authored Aug 14, 2024
2 parents 0a3e8c2 + d0ba92e commit da2ea15
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Package

on:
push:
branches: ["main"]

jobs:
publish:
name: Publish Package
runs-on: ubuntu-latest
strategy:
matrix:
version: [8.x, 7.x, 6.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.version }}
- name: Build and pack project files
run: dotnet pack -c Release
- name: Push Nuget packages to Nuget
run: dotnet nuget push **/*.nupkg --api-key "${{ secrets.NUGET_API_KEY }}" --source "https://api.nuget.org/v3/index.json" --skip-duplicate
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

[![Build](https://github.com/b3zaleel/draco-sharp/actions/workflows/build.yaml/badge.svg)](https://github.com/b3zaleel/draco-sharp/actions/workflows/build.yaml)
[![Tests](https://github.com/b3zaleel/draco-sharp/actions/workflows/test.yaml/badge.svg)](https://github.com/b3zaleel/draco-sharp/actions/workflows/test.yaml)
[![Nuget](https://img.shields.io/nuget/v/Draco)](https://www.nuget.org/packages/Draco#versions-body-tab)

A port of Google's [Draco](https://github.com/google/draco) library in C#.

0 comments on commit da2ea15

Please sign in to comment.