Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

publish-packages:
name: Publish to GitHub Packages
Expand Down Expand Up @@ -74,14 +76,7 @@ jobs:
- name: Build project
run: dotnet build --no-restore --configuration Release

- name: Make script executable
run: chmod +x ./CI_Pack_Push.ps1
shell: bash

- name: Publish to GitHub Packages
shell: pwsh
run: ./CI_Pack_Push.ps1
env:
GITHUB_NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
REPO_OWNER: ${{ github.repository_owner }}
run: |
dotnet pack --configuration Release --no-build -o ./nupkg
dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}
16 changes: 6 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

publish-packages:
name: Publish Package to GitHub Packages and NuGet.org
Expand Down Expand Up @@ -79,16 +81,10 @@ jobs:
- name: Build project
run: dotnet build --no-restore --configuration Release

- name: Make script executable
run: chmod +x ./Release_Pack_Push.ps1
shell: bash

- name: Publish Packages
shell: pwsh
run: ./Release_Pack_Push.ps1
run: |
dotnet pack --configuration Release --no-build -o ./nupkg
dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}
dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source ${{ env.NUGET_URL }} --api-key ${{ steps.nuget_login.outputs.NUGET_API_KEY }}
env:
REPO: ${{ github.repository }}
REPO_OWNER: ${{ github.repository_owner }}
NUGET_URL: 'https://api.nuget.org/v3/index.json'
GITHUB_NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_API_KEY: ${{ steps.nuget_login.outputs.NUGET_API_KEY }}