Skip to content

Commit

Permalink
Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MRmlik12 committed Jun 23, 2021
1 parent 629af11 commit 2bac24d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: build & deploy
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Install dependencies
run: dotnet restore
- name: Build project
run: dotnet build --configuration Release --no-restore
- name: Build NuGet package
run: dotnet pack -c Release
- name: publish to Github Packages
run: dotnet nuget push src/Vulder.SharedKernel/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/VulderApp/index.json
16 changes: 16 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: test build
on: [ pull_request ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Install dependencies
run: dotnet restore
- name: Build project
run: dotnet build --configuration Release --no-restore
1 change: 0 additions & 1 deletion src/Vulder.SharedKernel/Vulder.SharedKernel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<PackageVersion>0.1.0</PackageVersion>
<Title>Vulder.SharedKernel</Title>
<Authors>MRmlik12</Authors>
<Description> </Description>
<Copyright>VulderApp</Copyright>
<PackageProjectUrl>https://github.com/VulderApp/SharedKernel</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/VulderApp/SharedKernel/blob/main/LICENSE.md</PackageLicenseUrl>
Expand Down

0 comments on commit 2bac24d

Please sign in to comment.