Skip to content

Commit

Permalink
Update workflow yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutzzz committed Mar 2, 2024
1 parent 7e1e2c7 commit a1bfc2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -40,10 +40,11 @@ jobs:
- name: Run Tests
run: dotnet test --no-build --no-restore --logger "GitHubActions" --collect:"XPlat Code Coverage;Format=opencover"

- name: Codecov
uses: codecov/codecov-action@v3
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Nutzzz/GameCollector
files: coverage.xml
fail_ci_if_error: false
env_vars: OS
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -37,16 +37,17 @@ jobs:

- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
uses: mindsers/changelog-reader-action@v2.2.2
with:
validation_level: warn
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md

- name: Push to NuGet
run: dotnet nuget push **/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

- name: Push to GitHub Packages
run: dotnet nuget push **/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/Nutty/index.json
run: dotnet nuget push **/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/Nutzzz/index.json

- name: Create Release
id: create_release
Expand Down
5 changes: 5 additions & 0 deletions codecov.yml
@@ -1,3 +1,7 @@
codecov:
branch: main
bot: Nutzzz

ignore:
- "tests/**/*"
- "other/**/*"
Expand Down Expand Up @@ -25,6 +29,7 @@ component_management:
paths:
- "src/GameFinder.Common/**"
- "src/GameFinder.RegistryUtils/**"
- "src/GameCollector.Common/**"
- "src/GameCollector.SQLiteUtils/**"
- "src/GameCollector.YamlUtils/**"
- component_id: wine
Expand Down

0 comments on commit a1bfc2e

Please sign in to comment.