Skip to content

Commit

Permalink
Merge pull request #1 from DIMO-Network/develop
Browse files Browse the repository at this point in the history
Initial SDK Review
  • Loading branch information
Asfiroth authored Sep 11, 2024
2 parents ddea70b + d52026e commit fb460a9
Show file tree
Hide file tree
Showing 110 changed files with 5,504 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish package to NuGet

on:
push:
tags:
- 'v*'

env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
PROJECT_PATH: src/Dimo.Client/Dimo.Client.csproj
OUTPUT_PATH: ${{ github.workspace }}/output
NUGET_SOURCE_URL: https://api.nuget.org/v3/index.json

jobs:
deploy:
name: 'Deploy'
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: 'Install dotnet'
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'

- name: 'Restore packages'
run: dotnet restore ${{ env.PROJECT_PATH }}

- name: 'Build'
run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release --no-restore

- name: 'Version'
id: version
uses: battila7/get-version-action@v2

- name: 'Pack'
run: dotnet pack ${{ env.PROJECT_PATH }} --configuration Release --no-build --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.OUTPUT_PATH }}

- name: 'Publish'
run: dotnet nuget push ${{ env.OUTPUT_PATH }}/*.nupkg -s ${{ env.NUGET_SOURCE_URL }} -k ${{ env.NUGET_API_KEY }}
Loading

0 comments on commit fb460a9

Please sign in to comment.