Skip to content

Commit

Permalink
Merge pull request #17 from KrystianLesniak/feature/test_coverage
Browse files Browse the repository at this point in the history
Modified publish.yml to execute on pushes to main and pull requests t…
  • Loading branch information
KrystianLesniak authored Jul 30, 2023
2 parents 3abe017 + 77e612d commit 6deebae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
name: Publish
on:
workflow_dispatch:
pull_request:
push:
branches:
- 'main'
paths:
- src/*
- src/**
pull_request:
branches:
- 'develop'
release:
types:
- published
Expand Down Expand Up @@ -99,9 +105,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v3

# Publish all NuGet packages to NuGet.org
# Use --skip-duplicate to prevent errors if a package with the same version already exists.
# If you retry a failed workflow, already published packages will be skipped without error.
- name: Publish NuGet package
run: |
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_A C# .NET library that lets you get achievement, user, and game data from RetroAchievements._
<br><br>
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/KrystianLesniak/retroachievements-api-net/publish.yml?label=verification)
[![Coverage Status](https://coveralls.io/repos/github/KrystianLesniak/retroachievements-api-net/badge.svg?branch=main)](https://coveralls.io/github/KrystianLesniak/retroachievements-api-net?branch=main)
[![Coverage Status](https://coveralls.io/repos/github/KrystianLesniak/retroachievements-api-net/badge.svg)](https://coveralls.io/github/KrystianLesniak/retroachievements-api-net)
[![GitHub](https://img.shields.io/github/license/KrystianLesniak/retroachievements-api-net)](https://github.com/KrystianLesniak/retroachievements-api-net/blob/main/LICENSE)
[![Nuget](https://img.shields.io/nuget/dt/RetroAchievements.Api) ![Nuget](https://img.shields.io/nuget/vpre/RetroAchievements.Api)](https://www.nuget.org/packages/RetroAchievements.Api/)

Expand Down

0 comments on commit 6deebae

Please sign in to comment.