Skip to content

Commit

Permalink
Merge pull request #1 from olivegamestudio/olivegamestudio-patch-1
Browse files Browse the repository at this point in the history
Create dotnet.yml
  • Loading branch information
olivegamestudio authored Aug 15, 2024
2 parents 04dc510 + 5710fd5 commit fafe519
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0

- name: Get tags
run: git fetch --tags origin

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

- name: Restore dependencies
run: dotnet restore

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

- name: Test
run: dotnet test --configuration Release -p:CollectCoverage=true

- name: Publish Nuget
run: |
dotnet nuget push '**/*.nupkg' -k ${NUGET} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
env:
NUGET: ${{ secrets.NUGET }}

0 comments on commit fafe519

Please sign in to comment.