Skip to content

Commit

Permalink
feat(ci): use github actions deploy NuGet packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
netcore-jroger committed Aug 12, 2023
1 parent 95644d5 commit 802995f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 60 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: SimpleRpc-CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: |
dotnet restore ./SimpleRpc.sln
- name: Build project and Generate NuGet package
run: |
cd ./src/
dotnet build --configuration Release --nologo ./SimpleRpc.Shared/SimpleRpc.Shared.csproj || true
dotnet build --configuration Release --nologo ./SimpleRpc.Server/SimpleRpc.Server.csproj || true
dotnet build --configuration Release --nologo ./SimpleRpc.Client/SimpleRpc.Client.csproj || true
dotnet pack -c Release --nologo ./SimpleRpc.Shared/SimpleRpc.Shared.csproj -o ../nupkgs || true
dotnet pack -c Release --nologo ./SimpleRpc.Server/SimpleRpc.Server.csproj -o ../nupkgs || true
dotnet pack -c Release --nologo ./SimpleRpc.Client/SimpleRpc.Client.csproj -o ../nupkgs || true
# Runs a set of commands using the runners shell
- name: Publish nuget package.
run: |
dotnet nuget push ./nupkgs/*.nupkg --no-symbols true --skip-duplicate true -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json || true
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# SimpleRpc
A light-weight RPC wrap of google gRPC framework.

[![Build Status](https://travis-ci.org/netcore-jroger/SimpleRpc.svg?branch=master)](https://travis-ci.org/netcore-jroger/SimpleRpc)
[![Build status](https://ci.appveyor.com/api/projects/status/s8g60aaujm6ajcfs/branch/master?svg=true)](https://ci.appveyor.com/project/netcore-jroger/simplerpc/branch/master)
![Build Status](https://github.com/netcore-jroger/SimpleRpc/workflows/SimpleRpc-CI/badge.svg)
![GitHub](https://img.shields.io/github/license/netcore-jroger/SimpleRpc.svg)

| **Package** | **NuGet** |
Expand Down
45 changes: 0 additions & 45 deletions appveyor.yml

This file was deleted.

0 comments on commit 802995f

Please sign in to comment.